From 0c85e1a2e1f7d95998d35efeee0aee2e74458dc4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Oct 05 2020 23:59:22 +0000 Subject: nagios / client / check_ipa_replication: 2to3 on the script. Signed-off-by: Kevin Fenzi --- diff --git a/roles/nagios_client/files/scripts/check_ipa_replication b/roles/nagios_client/files/scripts/check_ipa_replication index 96ff469..5d82c1a 100644 --- a/roles/nagios_client/files/scripts/check_ipa_replication +++ b/roles/nagios_client/files/scripts/check_ipa_replication @@ -39,7 +39,7 @@ try: ldap.SCOPE_SUBTREE, '(objectclass=nsds5replicationagreement)', ['nsDS5ReplicaHost', 'nsds5replicaLastUpdateStatus']) -except Exception, e: +except Exception as e: plugin.status(critical) plugin.add_summary("Unable to initialize ldap connection: %s" % (e)) plugin.exit()