Exemplo n.º 1
0
 def list_names(self, listable_type):
     list_str = '%s list %s name' % (self.call_args, listable_type)
     (options, args) = self.parser.parse_args(shlex.split(list_str))
     mgmt = Management(options, args[1:])
     uri = mgmt.list_show_uri(LISTABLE, 'list', mgmt.args[1:])
     output_json = mgmt.get(uri)
     listables = simplejson.loads(output_json)
     return listables
Exemplo n.º 2
0
 def list_names(self, listable_type):
     list_str = '%s list %s name' % (self.call_args, listable_type)
     (options, args) = self.parser.parse_args(shlex.split(list_str))
     mgmt = Management(options, args[1:])
     uri = mgmt.list_show_uri(LISTABLE, 'list', mgmt.args[1:])
     output_json = mgmt.get(uri)
     listables = simplejson.loads(output_json)
     return listables