diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-08-26 10:31:54 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-08-26 10:31:54 +0000 |
commit | 390fedb666a22f0116c1cb660f3bbceb5bbd95f8 (patch) | |
tree | cad344e5bcfa6ad92281e06dfb7c7713df82daaf | |
parent | a39baa01d94c363b49c44df3cf173689ad66addf (diff) | |
parent | a3f81467e99b4bab28792a4659bad277a549eac4 (diff) | |
download | oslo-vmware-390fedb666a22f0116c1cb660f3bbceb5bbd95f8.tar.gz |
Merge "Add missing session parameter to get_summary"
-rw-r--r-- | oslo/vmware/objects/datastore.py | 2 | ||||
-rw-r--r-- | tests/objects/test_datastore.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/oslo/vmware/objects/datastore.py b/oslo/vmware/objects/datastore.py index b46d8cd..73466fb 100644 --- a/oslo/vmware/objects/datastore.py +++ b/oslo/vmware/objects/datastore.py @@ -90,7 +90,7 @@ class Datastore(object): :return: list of HostSystem managed object references """ hosts = [] - summary = self.get_summary() + summary = self.get_summary(session) if not summary.accessible: return hosts host_mounts = session.invoke_api(vim_util, 'get_object_property', diff --git a/tests/objects/test_datastore.py b/tests/objects/test_datastore.py index e9f1242..ccf3b29 100644 --- a/tests/objects/test_datastore.py +++ b/tests/objects/test_datastore.py @@ -94,6 +94,7 @@ class DatastoreTestCase(base.TestCase): m2 = HostMount("m2", MountInfo('read', True, True)) m3 = HostMount("m3", MountInfo('readWrite', False, True)) m4 = HostMount("m4", MountInfo('readWrite', True, False)) + ds.get_summary.assert_called_once_with(session) class Prop(object): DatastoreHostMount = [m1, m2, m3, m4] |