Ignore empty modification error in case cifs/.. principal already added

Constrained delegation target may already be configured by default.

Related: https://pagure.io/freeipa/issue/9354

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Alexander Bokovoy 2023-03-24 09:18:43 +02:00 committed by Rob Crittenden
parent 4119e4e799
commit 68c113f02b

View File

@ -563,6 +563,8 @@ class ADTRUSTInstance(service.Service):
self.print_msg('cifs principal already targeted, nothing to do.')
except errors.NotFound:
self.print_msg(UPGRADE_ERROR % dict(dn=targets_dn))
except errors.EmptyModlist:
pass
def __write_smb_registry(self):
"""Import IPA specific config into Samba registry