aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-10-30 20:25:41 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2017-10-30 20:25:41 +0100
commit2a068278a02c84bce4a5be713bd4e7d46da0f209 (patch)
treec620861eaea4bca714f14db50394ecf5544b477e
parente5429581fe53d9008e5adc87634b7c29f243d412 (diff)
downloadrumba-2a068278a02c84bce4a5be713bd4e7d46da0f209.tar.gz
rumba-2a068278a02c84bce4a5be713bd4e7d46da0f209.zip
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.
-rw-r--r--rumba/testbeds/jfed.py2
1 files changed, 1 insertions, 1 deletions
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")