diff options
| author | Shireesh Anjal <anjalshireesh@gmail.com> | 2011-06-01 07:34:48 -0700 |
|---|---|---|
| committer | Shireesh Anjal <anjalshireesh@gmail.com> | 2011-06-01 07:34:48 -0700 |
| commit | 60de4708d082ab00f4191ddf9cb4bc86ec0de168 (patch) | |
| tree | e5ca0327021f652f68a986210ea7706d53657978 | |
| parent | e1bd4292f1137bdc351e9b5e740edc3768928392 (diff) | |
| parent | 2de296e106400336abc45eadef777fc397d6d85d (diff) | |
Merge pull request #49 from TimothyAsir/master
Bug fixed: Updated multicast_response.py to check the server peer status using 'gluster peer status' message.
| -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)):
|
