Revision fe7c59d5 scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
423 | 423 |
ToStderr("Can't parse the instance definition file: %s" % str(err)) |
424 | 424 |
return 1 |
425 | 425 |
|
426 |
if not isinstance(instance_data, dict): |
|
427 |
ToStderr("The instance definition file is not in dict format.") |
|
428 |
return 1 |
|
429 |
|
|
426 | 430 |
jex = JobExecutor(opts=opts) |
427 | 431 |
|
428 | 432 |
# Iterate over the instances and do: |
429 | 433 |
# * Populate the specs with default value |
430 | 434 |
# * Validate the instance specs |
431 |
i_names = utils.NiceSort(instance_data.keys()) |
|
435 |
i_names = utils.NiceSort(instance_data.keys()) # pylint: disable-msg=E1103
|
|
432 | 436 |
for name in i_names: |
433 | 437 |
specs = instance_data[name] |
434 | 438 |
specs = _PopulateWithDefaults(specs) |
Also available in: Unified diff