Skip to content
Snippets Groups Projects
Commit 0ae14edd authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

QA: Stop using "in" operator for node


The new configuration object for nodes will not support it anymore.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 2029fe3f
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ def TestIcmpPing():
seccmd = [pingsecondary, "-e"]
for i in nodes:
pricmd.append(i["primary"])
if "secondary" in i:
if i.get("secondary"):
seccmd.append(i["secondary"])
pristr = utils.ShellQuoteArgs(pricmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment