cli: cachemaker should import config and not the field

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-03-19 15:47:51 +05:30
parent 93bc669a0e
commit e28aa09f01
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ try:
import os
import types
from config import cache_file
from config import config_fields
except ImportError, e:
import sys
print "ImportError", e
@ -168,6 +168,7 @@ def main(json_file):
f.close()
if __name__ == "__main__":
cache_file = config_fields['core']['cache_file']
print "[cachemaker] Pre-caching using user's cloudmonkey cache", cache_file
if os.path.exists(cache_file):
main(cache_file)