Revision 21bf2e2e qa/qa_env.py
b/qa/qa_env.py | ||
---|---|---|
42 | 42 |
"""Test availibility of Ganeti commands. |
43 | 43 |
|
44 | 44 |
""" |
45 |
cmds = ( ["gnt-backup", "--version"],
|
|
45 |
cmds = (["gnt-backup", "--version"], |
|
46 | 46 |
["gnt-cluster", "--version"], |
47 | 47 |
["gnt-debug", "--version"], |
48 | 48 |
["gnt-instance", "--version"], |
... | ... | |
76 | 76 |
seccmd = [pingsecondary, "-e"] |
77 | 77 |
for i in nodes: |
78 | 78 |
pricmd.append(i["primary"]) |
79 |
if i.has_key("secondary"):
|
|
79 |
if "secondary" in i:
|
|
80 | 80 |
seccmd.append(i["secondary"]) |
81 | 81 |
|
82 | 82 |
pristr = utils.ShellQuoteArgs(pricmd) |
Also available in: Unified diff