summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-24 15:32:57 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-24 15:32:57 +0000
commitb89ad4480d6d94d0d881279d0819c481603c1456 (patch)
tree66ae504f1a0feeec166d41a55ea28f21629dadaa /src/lib/Client
parentb238887ad8172c6a613b7d68bb551dac1aac57bb (diff)
downloadbcfg2-b89ad4480d6d94d0d881279d0819c481603c1456.tar.gz
bcfg2-b89ad4480d6d94d0d881279d0819c481603c1456.tar.bz2
bcfg2-b89ad4480d6d94d0d881279d0819c481603c1456.zip
Add return codes to action uploads
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2714 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/Action.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Action.py b/src/lib/Client/Tools/Action.py
index ddd15a264..578f898b8 100644
--- a/src/lib/Client/Tools/Action.py
+++ b/src/lib/Client/Tools/Action.py
@@ -20,6 +20,7 @@ class Action(Bcfg2.Client.Tools.Tool):
self.logger.debug("Running Action %s" % (entry.get('name')))
rc = self.cmd.run(entry.get('command'))[0]
self.logger.debug("Action: %s got rc %s" % (entry.get('command'), rc))
+ entry.set('rc', str(rc))
if entry.get('status', 'check') == 'ignore':
return True
else: