1. Jonathan Kinred
  2. psphere
  3. Issues
Issue #7 resolved

preload exception

Anonymous created an issue

encountered exception:

"suds.WebFault: Server raised fault: 'Not initialized: vmodl.query.PropertyCollector.PropertySpec[] propSet'"

when calling preload('vm', properties['name']) on an empty resource pool.

The problem looks to be in ManagedObject in init.py in the for loop at line 243, which could result in an empty mo_refs list.

I added the following stanzas after the for loop to get around it...

{{{ if len(mo_refs) == 0: return # noop }}}

You might have a better idea. :)



Comments (1)

  1. Log in to comment