Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 275D310B05 for ; Fri, 6 Dec 2013 00:39:52 +0000 (UTC) Received: (qmail 72505 invoked by uid 500); 6 Dec 2013 00:39:52 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 72483 invoked by uid 500); 6 Dec 2013 00:39:52 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 72476 invoked by uid 99); 6 Dec 2013 00:39:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 00:39:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CD09E82CB8A; Fri, 6 Dec 2013 00:39:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swagle@apache.org To: commits@ambari.apache.org Message-Id: <22c2f6a069194b659ce20c8084089cf0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: AMBARI-3983. Create a helper script to relocate host components. Error fix. (swagle) Date: Fri, 6 Dec 2013 00:39:51 +0000 (UTC) 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 Authored: Thu Dec 5 16:39:45 2013 -0800 Committer: Siddharth Wagle 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