ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-3983. Create a helper script to relocate host components. Error fix. (swagle)
Date Fri, 06 Dec 2013 00:39:51 GMT
Updated Branches:
  refs/heads/trunk 661d4d16a -> b2bbf8648


AMBARI-3983. Create a helper script to relocate host components. Error fix. (swagle)


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

Branch: refs/heads/trunk
Commit: b2bbf86485c3fe0781d1db949b9b0bc0c1b5a607
Parents: 661d4d1
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Thu Dec 5 16:39:45 2013 -0800
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Thu Dec 5 16:39:45 2013 -0800

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/b2bbf864/ambari-server/src/main/resources/scripts/relocate_resources.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/scripts/relocate_resources.py b/ambari-server/src/main/resources/scripts/relocate_resources.py
index e5740e5..d5af458 100644
--- a/ambari-server/src/main/resources/scripts/relocate_resources.py
+++ b/ambari-server/src/main/resources/scripts/relocate_resources.py
@@ -114,8 +114,8 @@ class AmbariResource:
       raise Exception('Resource not initialized')
 
     # If old and new hostname are the same exit harmlessly
-    if old_hostname == new_hostname:
-      logger.error('New hostname is same as existing host name, %s' % old_hostname)
+    if self.old_hostname == new_hostname:
+      logger.error('New hostname is same as existing host name, %s' % self.old_hostname)
       sys.exit(2)
     pass
 


Mime
View raw message