actually load the config
yaml.load takes a stream/string/buffer, not a filename. Change-Id: I6d5173e3612290c9dea0e176cdc306cf9f683321
This commit is contained in:
@@ -15,7 +15,8 @@ args = a.parse_args()
|
|||||||
conf = None
|
conf = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
conf = yaml.load(args.config)
|
with open(args.config) as f:
|
||||||
|
conf = yaml.load(f)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
print "Couldn't load config file: %s" % e
|
print "Couldn't load config file: %s" % e
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user