summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.server.scripts/src/get_server_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.gluster.storage.management.server.scripts/src/get_server_status.py')
-rwxr-xr-xsrc/com.gluster.storage.management.server.scripts/src/get_server_status.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com.gluster.storage.management.server.scripts/src/get_server_status.py b/src/com.gluster.storage.management.server.scripts/src/get_server_status.py
index 4e089b4b..99432a72 100755
--- a/src/com.gluster.storage.management.server.scripts/src/get_server_status.py
+++ b/src/com.gluster.storage.management.server.scripts/src/get_server_status.py
@@ -6,7 +6,6 @@
import os
import sys
import Utils
-from XmlHandler import ResponseXml
def main():
if len(sys.argv) != 1:
@@ -15,9 +14,9 @@ def main():
responseDom = ResponseXml()
if Utils.runCommand("pidof glusterd") == 0:
- responseDom.appendTagRoute("serverStatus", "ONLINE")
+ print "ONLINE"
else:
- responseDom.appendTagRoute("serverStatus", "OFFLINE")
+ print "OFFLINE"
print responseDom.toxml()
sys.exit(0)