Merge pull request #9959 from rook/mergify/bp/release-1.8/pr-9956
ci: fixed pylint failure (backport #9956)
This commit is contained in:
1 file changed
+3
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user