mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
fix Py3 incompatible exception instantiation in replica install code
https://fedorahosted.org/freeipa/ticket/5585 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
fe94222873
commit
00c13fd340
@ -335,7 +335,7 @@ def configure_certmonger():
|
||||
messagebus = services.knownservices.messagebus
|
||||
try:
|
||||
messagebus.start()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print("Messagebus service unavailable: %s" % str(e))
|
||||
sys.exit(3)
|
||||
|
||||
@ -344,13 +344,13 @@ def configure_certmonger():
|
||||
cmonger = services.knownservices.certmonger
|
||||
try:
|
||||
cmonger.restart()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print("Certmonger service unavailable: %s" % str(e))
|
||||
sys.exit(3)
|
||||
|
||||
try:
|
||||
cmonger.enable()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print("Failed to enable Certmonger: %s" % str(e))
|
||||
sys.exit(3)
|
||||
|
||||
@ -895,7 +895,7 @@ def promote_check(installer):
|
||||
if not options.no_ntp:
|
||||
try:
|
||||
ipaclient.ntpconf.check_timedate_services()
|
||||
except ipaclient.ntpconf.NTPConflictingService, e:
|
||||
except ipaclient.ntpconf.NTPConflictingService as e:
|
||||
print("WARNING: conflicting time&date synchronization service '%s'"
|
||||
" will" % e.conflicting_service)
|
||||
print("be disabled in favor of ntpd")
|
||||
|
Loading…
Reference in New Issue
Block a user