Add use_cache kwarg to get_info
Nova has changed the interface of the ComputeDriver.get_info method [1], adding a use_cache kwarg. The change preserves backward compatibility, but that's removed in Stein [2]. This patch changes the signature of PowerVMDriver.get_info to match. [1] https://review.openstack.org/#/c/636699/ [2] https://review.openstack.org/#/c/640043/ Depends-On: https://review.openstack.org/636699 Change-Id: Id5b00f1805b150c825070d79531be85092dce1a5
This commit is contained in:
parent
b3f9b9a5c2
commit
b3e195041d
|
@ -227,10 +227,11 @@ class PowerVMDriver(driver.ComputeDriver):
|
|||
{'op': op, 'display_name': instance.display_name,
|
||||
'name': instance.name}, instance=instance)
|
||||
|
||||
def get_info(self, instance):
|
||||
def get_info(self, instance, use_cache=True):
|
||||
"""Get the current status of an instance.
|
||||
|
||||
:param instance: nova.objects.instance.Instance object
|
||||
:param use_cache: unused in this driver
|
||||
:returns: An InstanceInfo object
|
||||
"""
|
||||
return vm.get_vm_info(self.adapter, instance)
|
||||
|
|
Loading…
Reference in New Issue