Merge "objects: use correct object class name in NeutronPrimaryKeyMissing"
This commit is contained in:
commit
67f751f6df
@ -429,7 +429,7 @@ class NeutronDbObject(NeutronObject):
|
||||
all_keys = itertools.chain([cls.primary_keys], cls.unique_keys)
|
||||
if not any(lookup_keys.issuperset(keys) for keys in all_keys):
|
||||
missing_keys = set(cls.primary_keys).difference(lookup_keys)
|
||||
raise NeutronPrimaryKeyMissing(object_class=cls.__class__,
|
||||
raise NeutronPrimaryKeyMissing(object_class=cls.__name__,
|
||||
missing_keys=missing_keys)
|
||||
|
||||
with db_api.autonested_transaction(context.session):
|
||||
|
Loading…
Reference in New Issue
Block a user