def get_mors_with_properties(service_instance, object_type, property_list=None, container_ref=None, traversal_spec=None, local_properties=False):
 content_args = [service_instance, object_type]
 content_kwargs = {'property_list': property_list, 'container_ref': container_ref, 'traversal_spec': traversal_spec, 'local_properties': local_properties}
 try:
  content = get_content(*content_args, **content_kwargs)
 except BadStatusLine:
  content = get_content(*content_args, **content_kwargs)
 except IOError as e:
  if (e.errno != errno.EPIPE):
   raise e
  content = get_content(*content_args, **content_kwargs)
 object_list = []
 for obj in content:
  properties = {}
  for prop in obj.propSet:
   properties[prop.name] = prop.val
  properties['object'] = obj.obj
  object_list.append(properties)
 log.trace('Retrieved {0} objects'.format(len(object_list)))
 return object_list

def get_mors_with_properties ( service_instance , object_type , property_list = None , container_ref = None , traversal_spec = None , local_properties = False ) : content_args = [ service_instance , object_type ] content_kwargs = { 'property_list' : property_list , 'container_ref' : container_ref , 'traversal_spec' : traversal_spec , 'local_properties' : local_properties } try : content = get_content ( * content_args , ** content_kwargs ) except BadStatusLine : content = get_content ( * content_args , ** content_kwargs ) except IOError as e : if ( e . errno != errno . EPIPE ) : raise e content = get_content ( * content_args , ** content_kwargs ) object_list = [ ] for obj in content : properties = { } for prop in obj . propSet : properties [ prop . name ] = prop . val properties [ 'object' ] = obj . obj object_list . append ( properties ) log . trace ( 'Retrieved {0} objects' . format ( len ( object_list ) ) ) return object_list
returns a list containing properties and managed object references for the managed object .