0
Ich versuche VIProperty in pysphere zu verwenden, aber ich bekomme 'str' Objekt hat kein Attribut 'typecode'.AttributError: 'str' Objekt hat kein Attribut 'typecode'
Code:
for h, mor in server.get_hosts().items():
if mor == 'xxx.com':
prop = VIProperty(server, mor)
Fehler:
Traceback (most recent call last):
File "teardown.py", line 29, in <module>
prop = VIProperty(server, mor)
File "/usr/local/lib/python2.7/dist-packages/pysphere/vi_property.py", line 38, in __init__
self._type = obj.typecode.type[1]
AttributeError: 'str' object has no attribute 'typecode'
okay! DwnVote für was? ohne Kommentar oder Feedback –