-def load(src_path = default_src_path,
- cache_path = default_cache_path,
- force_refresh = False):
+src_path = '/etc/invirt/master.yaml'
+cache_path = '/var/lib/invirt/cache.json'
+lock_path = '/var/lib/invirt/cache.lock'
+
+def load_master():
+ with closing(file(src_path)) as f:
+ return yaml.load(f, loader)
+
+def get_src_mtime():
+ return getmtime(src_path)
+
+def load(force_refresh = False):