strip extra whitespace
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 25 May 2012 19:19:24 +0000 (15:19 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 25 May 2012 19:19:24 +0000 (15:19 -0400)
sfa/planetlab/pldriver.py

index 76f54da..3191182 100644 (file)
@@ -724,9 +724,9 @@ class PlDriver (Driver):
         for node in rspec.version.get_nodes_with_slivers():
             hostname = None
             if node.get('component_name'):
-                hostname = node.get('component_name')
+                hostname = node.get('component_name').strip()
             elif node.get('component_id'):
-                hostname = xrn_to_hostname(node.get('component_id'))
+                hostname = xrn_to_hostname(node.get('component_id').strip())
             if hostname:
                 requested_slivers.append(hostname)
         nodes = slices.verify_slice_nodes(slice, requested_slivers, peer)