docs: def get_mors_with_properties(service_instance, object_type, property_list=None,
                               container_ref=None, traversal_spec=None,
                               local_properties=False):
      '''
      Returns a list containing properties and managed object references for the managed object.
  
      service_instance
          The Service Instance from which to obtain managed object references.
  
      object_type
          The type of content for which to obtain managed object references.
  
      property_list
          An optional list of object properties used to return even more filtered managed object reference results.
  
      container_ref
          An optional reference to the managed object to search under. Can either be an object of type Folder, Datacenter,
          ComputeResource, Resource Pool or HostSystem. If not specified, default behaviour is to search under the inventory
          rootFolder.
  
      traversal_spec
          An optional TraversalSpec to be used instead of the standard
          ``Traverse All`` spec
  
      local_properties
          Flag specigying whether the properties to be retrieved are local to the
          container. If that is the case, the traversal spec needs to be None.
      '''
      # Get all the content
      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 exc:
          if exc.errno != errno.EPIPE:
              raise exc
          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 %s objects', len(object_list))
      return object_list