Updated Branches:
  refs/heads/trunk f5b581343 -> 2aaf8bc14

AMBARI-3208. Fix error when running 'ambari-server status' (ncole)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/2aaf8bc1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/2aaf8bc1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/2aaf8bc1

Branch: refs/heads/trunk
Commit: 2aaf8bc1412004cde19f41c63687a91b273001f9
Parents: f5b5813
Author: Nate Cole <[email protected]>
Authored: Thu Sep 12 15:38:35 2013 -0400
Committer: Nate Cole <[email protected]>
Committed: Thu Sep 12 15:38:35 2013 -0400

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari-server.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2aaf8bc1/ambari-server/src/main/python/ambari-server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari-server.py 
b/ambari-server/src/main/python/ambari-server.py
index 4ee3817..f826c8e 100755
--- a/ambari-server/src/main/python/ambari-server.py
+++ b/ambari-server/src/main/python/ambari-server.py
@@ -3679,8 +3679,8 @@ def main():
       parser.error("Invalid action")
 
     if action in ACTION_REQUIRE_RESTART and need_restart:
-      status, pid = is_server_runing()
-      if status:
+      pstatus, pid = is_server_runing()
+      if pstatus:
         print 'NOTE: Restart Ambari Server to apply changes'+ \
               ' ("ambari-server restart|stop|start")'
 

Reply via email to