Commit 20eca47d authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix an error handling case in TLReplaceDisks



pylint is your friend, since the compiler doesn't exist.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent a4eae71f
......@@ -6364,7 +6364,7 @@ class TLReplaceDisks(Tasklet):
"""
self.instance = instance = self.cfg.GetInstanceInfo(self.instance_name)
assert instance is not None, \
"Cannot retrieve locked instance %s" % instance_name
"Cannot retrieve locked instance %s" % self.instance_name
if instance.disk_template != constants.DT_DRBD8:
raise errors.OpPrereqError("Can only run replace disks for DRBD8-based"
......
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