Wrong argument name and wrong number of arguments in string formatting.
---
lib/config.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/config.py b/lib/config.py
index 5bb3218..47de2b5 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -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.name, item.uuid))
+ elif item.uuid in self._AllIDs(include_temporary=True):
+ raise errors.ConfigurationError("Cannot add '%s': UUID %s already"
+ " in use" % (item.name, item.uuid))
def _SetInstanceStatus(self, instance_name, status):
"""Set the instance's status to a given value.
--
1.6.5.7