From 2a068278a02c84bce4a5be713bd4e7d46da0f209 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 30 Oct 2017 20:25:41 +0100 Subject: testbeds: Fix check for physical machines The check for the value of the "exclusive" attribute was comparing to the boolean True instead of the string "true", causing the selection of default VM images regardless of this setting. --- rumba/testbeds/jfed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rumba/testbeds') diff --git a/rumba/testbeds/jfed.py b/rumba/testbeds/jfed.py index 8973335..6a5c3de 100644 --- a/rumba/testbeds/jfed.py +++ b/rumba/testbeds/jfed.py @@ -157,7 +157,7 @@ class Testbed(mod.Testbed): el2 = doc.createElement("sliver_type") el.appendChild(el2) - if (el.getAttribute("exclusive") == True): + if (el.getAttribute("exclusive") == "true"): el2.setAttribute("name", "raw-pc") else: el2.setAttribute("name", "default-vm") -- cgit v1.2.3