diff --git a/deploy/examples/create-external-cluster-resources.py b/deploy/examples/create-external-cluster-resources.py index 13723aceb..32f967a65 100644 --- a/deploy/examples/create-external-cluster-resources.py +++ b/deploy/examples/create-external-cluster-resources.py @@ -25,11 +25,7 @@ import subprocess from os import linesep as LINESEP from os import path -# backward compatibility with 2.x -try: - ModuleNotFoundError -except: - ModuleNotFoundError = ImportError +ModuleNotFoundError = ImportError try: import rados @@ -494,9 +490,9 @@ class RadosJSON: monitoring_endpoint_ip = monitoring_endpoint_ip_list_split[0] # rest of the ip-s are added to the 'standby_mgrs' list standby_mgrs.extend(monitoring_endpoint_ip_list_split[1:]) - + failed_ip = monitoring_endpoint_ip + try: - failed_ip = monitoring_endpoint_ip monitoring_endpoint_ip = self._convert_hostname_to_ip( monitoring_endpoint_ip) # collect all the 'stand-by' mgr ips