The 'hostname' is actually a QString object. Convert it to a string before calling into rspec library.
status = self.itemStatus(item)
if status == node_status['add']:
print "Add hostname: %s" % hostname
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
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(": ")
change = True
elif depth == 3: # Tag
tag, value = self.itemText(item).split(": ")