Commit d1482ea2 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Add missing save/re-read cluster configuration



.. in LUClusterSetParams. Since _SetFileStorageDir updates the 'cluster'
variable directly, we need to re-read it and then save later (the other
calls use the configuration directly).
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 2676f31a
......@@ -1485,10 +1485,14 @@ class LUClusterSetParams(LogicalUnit):
self.cfg.Update(self.cluster, feedback_fn)
self._SetVgName(feedback_fn)
self.cluster = self.cfg.GetClusterInfo()
self._SetFileStorageDir(feedback_fn)
self.cfg.Update(self.cluster, feedback_fn)
self._SetDrbdHelper(feedback_fn)
# re-read the fresh configuration
# re-read the fresh configuration again
self.cluster = self.cfg.GetClusterInfo()
if self.op.hvparams:
......
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