Skip to content

Commit

Permalink
Fix 'datastore.get' method as we search by the datastore url, not the…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
dnaeon committed Mar 31, 2014
1 parent 42669a4 commit 28ed464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vpoller/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,13 +821,13 @@ def datastore_get(self, msg):
"""
# Property names to be collected
properties = ['name']
properties = ['name', 'info.url']
if msg.has_key('properties') and msg['properties']:
properties.extend(msg['properties'])

return self._get_object_properties(
properties=properties,
obj_type=pyVmomi.vim.Datastore,
obj_property_name='name',
obj_property_name='info.url',
obj_property_value=msg['name']
)

0 comments on commit 28ed464

Please sign in to comment.