0

How does one get all the property values from an object. For example a method returned me an object, but when I print it out there's only type and value displayed. For example I've got an ManagedObjectReference of Task named obj. If I write print obj.info an error occurs:

AttributeError: returnval instance has no attribute 'info'

Linas
  • 560
  • 1
  • 5
  • 16

1 Answers1

0

If you are using PropertyCollector's RetrieveProperties, CheckForUupdates etc then in PropertyFilterSpec set PropertySpec.all=True. This will fetch all properties of the MOR. But this will be a huge performance hit. Instead I would suggest list out the properties you need in the PropertySpec.pathSet.

Litty
  • 305
  • 2
  • 16