Add missing session parameter to get_summary
The session parameter is missing when calling the get_summary method. Change-Id: I56649ca5a647c502a3cc5b7103ae1c659cb1c57c
This commit is contained in:
parent
d9ada2a294
commit
a3f81467e9
@ -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',
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user