git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd26e02
)
Convert hostname to string
author
Andy Bavier
<acb@cs.princeton.edu>
Fri, 17 Jun 2011 19:03:28 +0000
(15:03 -0400)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/sface/screens/mainscreen.py
b/sface/screens/mainscreen.py
index
92c2a12
..
cc34adb
100644
(file)
--- a/
sface/screens/mainscreen.py
+++ b/
sface/screens/mainscreen.py
@@
-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(": ")