diff options
Diffstat (limited to 'ipalib/plugins/certprofile.py')
-rw-r--r-- | ipalib/plugins/certprofile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/certprofile.py b/ipalib/plugins/certprofile.py index a0ffa3860..8e60a4df8 100644 --- a/ipalib/plugins/certprofile.py +++ b/ipalib/plugins/certprofile.py @@ -292,7 +292,7 @@ class certprofile_del(LDAPDelete): def pre_callback(self, ldap, dn, *keys, **options): ca_enabled_check() - if keys[0] in map(attrgetter('profile_id'), INCLUDED_PROFILES): + if keys[0] in [p.profile_id for p in INCLUDED_PROFILES]: raise errors.ValidationError(name='profile_id', error=_("Predefined profile '%(profile_id)s' cannot be deleted") % {'profile_id': keys[0]} |