"""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)')
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