diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/com.gluster.storage.management.server.scripts/src/multicast_response.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.server.scripts/src/multicast_response.py b/src/com.gluster.storage.management.server.scripts/src/multicast_response.py index dba65c07..cb197101 100644 --- a/src/com.gluster.storage.management.server.scripts/src/multicast_response.py +++ b/src/com.gluster.storage.management.server.scripts/src/multicast_response.py @@ -28,7 +28,8 @@ def isinpeer(): command = "gluster peer status"
status = Utils.runCommand(command, output=True, root=True)
if status["Status"] == 0:
- return True
+ if status["Stdout"].strip().upper() != "NO PEERS PRESENT":
+ return True
#lines = status["Stdout"].split("\n")
#for line in lines:
# if string.upper(line).startswith("HOSTNAME: %s" % string.upper(socket.gethostname)):
|
