def list_objects(service_instance, vim_object, properties=None):
 if (properties is None):
  properties = ['name']
 items = []
 item_list = get_mors_with_properties(service_instance, vim_object, properties)
 for item in item_list:
  items.append(item['name'])
 return items

def list_objects ( service_instance , vim_object , properties = None ) : if ( properties is None ) : properties = [ 'name' ] items = [ ] item_list = get_mors_with_properties ( service_instance , vim_object , properties ) for item in item_list : items . append ( item [ 'name' ] ) return items
returns a simple list of objects from a given service instance .