Commit b0fe461d authored by Vincent Pelletier's avatar Vincent Pelletier

Display both names when reporting a difference.

parent 03ae3309
...@@ -130,10 +130,13 @@ class Application(object): ...@@ -130,10 +130,13 @@ class Application(object):
# check cluster name # check cluster name
try: try:
if dm.getName() != self.name: dm_name = dm.getName()
raise RuntimeError('name does not match with the database')
except KeyError: except KeyError:
dm.setName(self.name) dm.setName(self.name)
else:
if dm_name != self.name:
raise RuntimeError('name %r does not match with the '
'database: %r' % (self.name, dm_name))
# load configuration # load configuration
self.uuid = NoneOnKeyError(dm.getUUID) self.uuid = NoneOnKeyError(dm.getUUID)
......
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