Commit be0fc05d authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix two bugs in ConfigWriter._EnsureUUID

Wrong argument name and wrong number of arguments in string formatting.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarOlivier Tharan <>
parent 5905901c
......@@ -826,9 +826,9 @@ class ConfigWriter:
if not item.uuid:
item.uuid = self._GenerateUniqueID(ec_id)
elif item.uuid in self._AllIDs(temporary=True):
raise errors.ConfigurationError("Cannot add '%s': UUID already in use" %
(, item.uuid))
elif item.uuid in self._AllIDs(include_temporary=True):
raise errors.ConfigurationError("Cannot add '%s': UUID %s already"
" in use" % (, item.uuid))
def _SetInstanceStatus(self, instance_name, status):
"""Set the instance's status to a given value.
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