Revision b459a848 lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
20 | 20 |
|
21 | 21 |
"""Instance related commands""" |
22 | 22 |
|
23 |
# pylint: disable-msg=W0401,W0614,C0103
|
|
23 |
# pylint: disable=W0401,W0614,C0103 |
|
24 | 24 |
# W0401: Wildcard import ganeti.cli |
25 | 25 |
# W0614: Unused import %s from wildcard import (since we need cli) |
26 | 26 |
# C0103: Invalid name gnt-instance |
... | ... | |
87 | 87 |
@raise errors.OpPrereqError: for invalid input parameters |
88 | 88 |
|
89 | 89 |
""" |
90 |
# pylint: disable-msg=W0142
|
|
90 |
# pylint: disable=W0142 |
|
91 | 91 |
|
92 | 92 |
if client is None: |
93 | 93 |
client = GetClient() |
... | ... | |
322 | 322 |
json_filename = args[0] |
323 | 323 |
try: |
324 | 324 |
instance_data = simplejson.loads(utils.ReadFile(json_filename)) |
325 |
except Exception, err: # pylint: disable-msg=W0703
|
|
325 |
except Exception, err: # pylint: disable=W0703 |
|
326 | 326 |
ToStderr("Can't parse the instance definition file: %s" % str(err)) |
327 | 327 |
return 1 |
328 | 328 |
|
... | ... | |
335 | 335 |
# Iterate over the instances and do: |
336 | 336 |
# * Populate the specs with default value |
337 | 337 |
# * Validate the instance specs |
338 |
i_names = utils.NiceSort(instance_data.keys()) # pylint: disable-msg=E1103
|
|
338 |
i_names = utils.NiceSort(instance_data.keys()) # pylint: disable=E1103 |
|
339 | 339 |
for name in i_names: |
340 | 340 |
specs = instance_data[name] |
341 | 341 |
specs = _PopulateWithDefaults(specs) |
Also available in: Unified diff