mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Rename errors2.py to errors.py. Modify all affected files.
This commit is contained in:
committed by
Rob Crittenden
parent
596d410471
commit
7d0bd4b895
@@ -26,7 +26,7 @@ try:
|
||||
from ipapython import entity, ipautil, config
|
||||
from ipaserver.install import installutils
|
||||
from ipaserver.install.ldapupdate import LDAPUpdate, BadSyntax, UPDATES_DIR
|
||||
from ipalib import errors2
|
||||
from ipalib import errors
|
||||
import ldap
|
||||
import logging
|
||||
import re
|
||||
@@ -110,7 +110,7 @@ def main():
|
||||
ldap.SCOPE_BASE, "(objectclass=*)")
|
||||
print "Plugin already Enabled"
|
||||
retval = 2
|
||||
except errors2.NotFound:
|
||||
except errors.NotFound:
|
||||
print "Enabling plugin"
|
||||
except ldap.LDAPError, e:
|
||||
print "An error occurred while talking to the server."
|
||||
@@ -132,7 +132,7 @@ def main():
|
||||
conn.deleteEntry("cn=groups,cn=Schema Compatibility,cn=plugins,cn=config")
|
||||
conn.deleteEntry("cn=users,cn=Schema Compatibility,cn=plugins,cn=config")
|
||||
conn.deleteEntry("cn=Schema Compatibility,cn=plugins,cn=config")
|
||||
except errors2.NotFound:
|
||||
except errors.NotFound:
|
||||
print "Plugin is already disabled"
|
||||
retval = 2
|
||||
except ldap.LDAPError, e:
|
||||
|
||||
Reference in New Issue
Block a user