Revision d0c8c01d qa/qa_os.py
b/qa/qa_os.py | ||
---|---|---|
56 | 56 |
|
57 | 57 |
def _TestOsModify(hvp_dict, fail=False): |
58 | 58 |
"""gnt-os modify""" |
59 |
cmd = ['gnt-os', 'modify']
|
|
59 |
cmd = ["gnt-os", "modify"]
|
|
60 | 60 |
|
61 | 61 |
for hv_name, hv_params in hvp_dict.items(): |
62 |
cmd.append('-H')
|
|
62 |
cmd.append("-H")
|
|
63 | 63 |
options = [] |
64 | 64 |
for key, value in hv_params.items(): |
65 | 65 |
options.append("%s=%s" % (key, value)) |
66 |
cmd.append('%s:%s' % (hv_name, ','.join(options)))
|
|
66 |
cmd.append("%s:%s" % (hv_name, ",".join(options)))
|
|
67 | 67 |
|
68 | 68 |
cmd.append(_TEMP_OS_NAME) |
69 | 69 |
AssertCommand(cmd, fail=fail) |
... | ... | |
99 | 99 |
parts.append(sq(["echo", str(constants.OS_API_V10)]) + |
100 | 100 |
" >ganeti_api_version") |
101 | 101 |
|
102 |
cmd = ' && '.join(parts)
|
|
102 |
cmd = " && ".join(parts)
|
|
103 | 103 |
|
104 | 104 |
print qa_utils.FormatInfo("Setting up %s with %s OS definition" % |
105 | 105 |
(node["primary"], |
Also available in: Unified diff