Commit 3a5c2c0e authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Fix configuration calls for LUInstanceShutdown



Re-read the instance in-memory objects from WConfd after calls that
change its state.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent cb3ac71c
......@@ -232,7 +232,7 @@ class LUInstanceShutdown(LogicalUnit):
# If the instance is offline we shouldn't mark it as down, as that
# resets the offline flag.
if not self.op.no_remember and self.instance.admin_state in INSTANCE_ONLINE:
self.cfg.MarkInstanceDown(self.instance.uuid)
self.instance = self.cfg.MarkInstanceDown(self.instance.uuid)
if self.primary_offline:
assert self.op.ignore_offline_nodes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment