Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEB0790C3 for ; Wed, 14 Dec 2011 07:39:15 +0000 (UTC) Received: (qmail 65823 invoked by uid 500); 14 Dec 2011 07:39:15 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 65807 invoked by uid 500); 14 Dec 2011 07:39:15 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 65800 invoked by uid 99); 14 Dec 2011 07:39:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 07:39:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 07:39:13 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8BBD1238889B; Wed, 14 Dec 2011 07:38:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1214081 - /incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py Date: Wed, 14 Dec 2011 07:38:52 -0000 To: ambari-commits@incubator.apache.org From: ddas@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111214073852.8BBD1238889B@eris.apache.org> Author: ddas Date: Wed Dec 14 07:38:52 2011 New Revision: 1214081 URL: http://svn.apache.org/viewvc?rev=1214081&view=rev Log: AMBARI-157. Bug fixes Modified: incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py Modified: incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py?rev=1214081&r1=1214080&r2=1214081&view=diff ============================================================================== --- incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py (original) +++ incubator/ambari/trunk/agent/src/main/python/ambari_agent/ActionQueue.py Wed Dec 14 07:38:52 2011 @@ -172,6 +172,7 @@ class ActionQueue(threading.Thread): filepath = getFilePath(action,self.getInstallFilename(action['id'])) logger.debug("FILEPATH : " + filepath) p = self.sh.run(['/bin/cat',AmbariConfig.config.get('puppet','driver')]) + r={} if p['exitCode']!=0: commandResult['error'] = p['error'] commandResult['exitCode'] = p['exitCode']