Convert hostname to string
authorAndy Bavier <acb@cs.princeton.edu>
Fri, 17 Jun 2011 19:03:28 +0000 (15:03 -0400)
committerAndy Bavier <acb@cs.princeton.edu>
Fri, 17 Jun 2011 19:03:28 +0000 (15:03 -0400)
The 'hostname' is actually a QString object.  Convert it to a string before calling into rspec library.

sface/screens/mainscreen.py

index 92c2a12..cc34adb 100644 (file)
@@ -313,11 +313,11 @@ class SliceWidget(QWidget):
             status = self.itemStatus(item)
             if status == node_status['add']:
                 print "Add hostname: %s" % hostname
-                rspec.add_slivers(hostname, testbed)
+                rspec.add_slivers(str(hostname), testbed)
                 change = True
             elif status == node_status['remove']:
                 print "Remove hostname: %s" % hostname
-                rspec.remove_slivers(hostname, testbed)
+                rspec.remove_slivers(str(hostname), testbed)
                 change = True
         elif depth == 3: # Tag
             tag, value = self.itemText(item).split(": ")