Fix power_shutdown target_status
Clearly the shutdown action should not have had a target_status of ACTIVE. This should only have impacted bmcs using the status cache, which is off by default.
This commit is contained in:
parent
d43ce6228a
commit
3449a8263f
|
@ -205,7 +205,7 @@ class OpenStackBmc(bmc.Bmc):
|
|||
def power_shutdown(self):
|
||||
"""Stop the managed instance"""
|
||||
# should attempt a clean shutdown
|
||||
self.target_status = 'ACTIVE'
|
||||
self.target_status = 'SHUTOFF'
|
||||
self.novaclient.servers.stop(self.instance)
|
||||
self.log('Politely shut down %s' % self.instance)
|
||||
|
||||
|
|
Loading…
Reference in New Issue