Commit f437a5f8 authored by Petr Pudlak's avatar Petr Pudlak

Fix the order of configuration calls

Since _SetDrbdHelper calls methods on self.cfg, it's necessary to update
the configuration before it is called.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 239826ef
......@@ -1500,8 +1500,8 @@ class LUClusterSetParams(LogicalUnit):
self.cluster = self.cfg.GetClusterInfo()
self._SetFileStorageDir(feedback_fn)
self._SetDrbdHelper(feedback_fn)
self.cfg.Update(self.cluster, feedback_fn)
self._SetDrbdHelper(feedback_fn)
# re-read the fresh configuration again
self.cluster = self.cfg.GetClusterInfo()
......
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