Revision 13998ef2 scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
443 | 443 |
|
444 | 444 |
json_filename = args[0] |
445 | 445 |
try: |
446 |
fd = open(json_filename, 'r') |
|
447 |
instance_data = simplejson.load(fd) |
|
448 |
fd.close() |
|
446 |
instance_data = simplejson.loads(utils.ReadFile(json_filename)) |
|
449 | 447 |
except Exception, err: |
450 | 448 |
ToStderr("Can't parse the instance definition file: %s" % str(err)) |
451 | 449 |
return 1 |
Also available in: Unified diff