mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Fix bug: not found exc. handler was failing for singleton objects
This commit is contained in:
parent
6136f773a9
commit
cc9d0ffc67
@ -117,9 +117,12 @@ class LDAPObject(Object):
|
||||
del entry_attrs[attr]
|
||||
|
||||
def handle_not_found(self, *keys):
|
||||
pkey = ''
|
||||
if self.primary_key:
|
||||
pkey = keys[-1]
|
||||
raise errors.NotFound(
|
||||
reason=self.object_not_found_msg % {
|
||||
'pkey': keys[-1], 'oname': self.object_name,
|
||||
'pkey': pkey, 'oname': self.object_name,
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user