Merge "Pass kwargs to exception to get better format of error message"
This commit is contained in:
commit
e1a027067c
@ -104,7 +104,7 @@ class DesignateDriver(driver.DnsDriver):
|
||||
matching_record = [rec for rec in records
|
||||
if rec.name == name + '.' and rec.type == type]
|
||||
if not matching_record:
|
||||
raise exception.DnsRecordNotFound(name)
|
||||
raise exception.DnsRecordNotFound(name=name)
|
||||
LOG.debug("Deleting DNS entry %s.", name)
|
||||
self.dns_client.records.delete(dns_zone.id, matching_record[0].id)
|
||||
|
||||
|
@ -1146,7 +1146,7 @@ class CassandraAdmin(object):
|
||||
if user:
|
||||
return user.databases
|
||||
|
||||
raise exception.UserNotFound(username)
|
||||
raise exception.UserNotFound(uuid=username)
|
||||
|
||||
def _deserialize_keyspace(self, keyspace_dict, check_reserved=True):
|
||||
if keyspace_dict:
|
||||
|
@ -654,7 +654,7 @@ class PgSqlAdmin(object):
|
||||
if user is not None:
|
||||
return user.databases
|
||||
|
||||
raise exception.UserNotFound(username)
|
||||
raise exception.UserNotFound(uuid=username)
|
||||
|
||||
def create_database(self, context, databases):
|
||||
"""Create the list of specified databases.
|
||||
|
Loading…
Reference in New Issue
Block a user