Skip to content

Commit e28aa09

Browse files
committed
cli: cachemaker should import config and not the field
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 93bc669 commit e28aa09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/cli/cloudmonkey/cachemaker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import os
2222
import types
2323

24-
from config import cache_file
24+
from config import config_fields
2525
except ImportError, e:
2626
import sys
2727
print "ImportError", e
@@ -168,6 +168,7 @@ def main(json_file):
168168
f.close()
169169

170170
if __name__ == "__main__":
171+
cache_file = config_fields['core']['cache_file']
171172
print "[cachemaker] Pre-caching using user's cloudmonkey cache", cache_file
172173
if os.path.exists(cache_file):
173174
main(cache_file)

0 commit comments

Comments
 (0)