summaryrefslogtreecommitdiffstats
path: root/plugins/check_vol_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_vol_server.py')
-rwxr-xr-xplugins/check_vol_server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_vol_server.py b/plugins/check_vol_server.py
index 4e42025..e7dd150 100755
--- a/plugins/check_vol_server.py
+++ b/plugins/check_vol_server.py
@@ -226,11 +226,11 @@ def _executeRandomHost(hostgroup, command):
#the command is successful
#No need to send it to host which we already sent unless volume locked
- if not output.contains("UNKNOWN: temporary error"):
+ if not "UNKNOWN: temporary error" in output:
# if volume locked,we can try on same host
list_hosts.remove(host)
for host in list_hosts:
- if output.contains("UNKNOWN: temporary error"):
+ if "UNKNOWN: temporary error" in output:
# volume locked, so wait before trying again
time.sleep(2) # sleep for 2 seconds
host_address = _getHostAddress(host)