Commit 5a20e569 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Fix configuration calls for LUInstanceRename



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 48b37308
......@@ -1744,6 +1744,8 @@ class LUInstanceRename(LogicalUnit):
old_file_storage_dir, new_file_storage_dir))
StartInstanceDisks(self, renamed_inst, None)
renamed_inst = self.cfg.GetInstanceInfo(renamed_inst.uuid)
# update info on disks
info = GetInstanceInfoText(renamed_inst)
for (idx, disk) in enumerate(renamed_inst.disks):
......
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