import re
import yaml
-from invirt.common import *
+import invirt.common
try: loader = yaml.CSafeLoader
except: loader = yaml.SafeLoader
# transactionally isolated from the above cache read. If we fail to
# acquire the lock, just try to load the master configuration.
try:
- with lock_file(lock_path):
+ with invirt.common.open_locked(lock_path):
ns.cfg = load_master()
try:
with open(cache_path + '.tmp', 'w') as f: