tushardag / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

Attempting to get a list of alerts yields [InvalidPropertyFault] #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.server = VIServer()
2.server.connect(vcenter, user, pass)
3.alarms = server._get_managed_objects(MORTypes.Alarm)

What is the expected output? What do you see instead?
A dict of alarm MOR's as keys and alarm names as values.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pysphere/vi_server.py", line 792, in _get_managed_objects
  File "build/bdist.linux-x86_64/egg/pysphere/vi_server.py", line 720, in _retrieve_properties_traversal
pysphere.resources.vi_exception.VIApiException: [InvalidPropertyFault]: 

What version of the product are you using? On what operating system?
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
>>> from pysphere import version
>>> print version
<module 'pysphere.version' from 
'/usr/local/lib/python2.7/dist-packages/pysphere-0.1.8-py2.7.egg/pysphere/versio
n.pyc'>

Please provide any additional information below.

Original issue reported on code.google.com by krazyl...@google.com on 20 Mar 2015 at 11:30