From 0ae14eddc2bbab389b85eeceb29967fceed3bbea Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 5 Feb 2013 16:40:48 +0100 Subject: [PATCH] QA: Stop using "in" operator for node The new configuration object for nodes will not support it anymore. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Helga Velroyen <helgav@google.com> --- qa/qa_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa_env.py b/qa/qa_env.py index 18313660d..bb2f39f57 100644 --- a/qa/qa_env.py +++ b/qa/qa_env.py @@ -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) -- GitLab