sfi: remove testbed-dependent options for add/update (like url or
[sfa.git] / sfa / client / sfaadmin.py
index 54db87a..1e1d675 100755 (executable)
@@ -147,7 +147,6 @@ class RegistryCommands(Commands):
         """Update an existing Registry record""" 
         record_dict = self._record_dict(xrn=xrn, type=type, url=url, description=description, 
                                         key=key, slices=slices, researchers=researchers, pis=pis)
-        for (k,v) in record_dict.items(): print k,'=',v
         self.api.manager.Update(self.api, record_dict)
         
     @args('-x', '--xrn', dest='xrn', metavar='<xrn>', help='object hrn/urn (mandatory)') 
@@ -287,7 +286,8 @@ class AggregateCommands(Commands):
 or the resources allocated by a slice"""  
         options = {'geni_rspec_version': rspec_version}
         if xrn:
-            options['geni_slice_urn'] = xrn
+            options['geni_slice_urn'] = Xrn(xrn, 'slice').get_urn()
+        print options
         resources = self.api.manager.ListResources(self.api, [], options)
         print resources