Переглянути джерело

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

Siddharth Wagle 11 роки тому
батько
коміт
b2bbf86485

+ 2 - 2
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