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:
Ben Nemec 2018-03-16 11:52:39 -05:00
parent d43ce6228a
commit 3449a8263f
1 changed files with 1 additions and 1 deletions

View File

@ -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)