Merge "Update nova driver's power_off() parameters"

This commit is contained in:
Jenkins 2014-08-25 09:09:18 +00:00 committed by Gerrit Code Review
commit 41b1d63099
1 changed files with 5 additions and 2 deletions

View File

@ -728,11 +728,14 @@ class IronicDriver(virt_driver.ComputeDriver):
node = _validate_instance_and_node(icli, instance)
icli.call("node.set_power_state", node.uuid, 'reboot')
def power_off(self, instance):
def power_off(self, instance, timeout=0, retry_interval=0):
"""Power off the specified instance.
:param instance: The instance object.
:param timeout: time to wait for node to shutdown. Ignored by
this driver.
:param retry_interval: How often to signal node while waiting
for it to shutdown. Ignored by this driver.
"""
icli = client_wrapper.IronicClientWrapper()
node = _validate_instance_and_node(icli, instance)