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