diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-24 15:32:57 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-24 15:32:57 +0000 |
commit | b89ad4480d6d94d0d881279d0819c481603c1456 (patch) | |
tree | 66ae504f1a0feeec166d41a55ea28f21629dadaa /src/lib/Client/Tools | |
parent | b238887ad8172c6a613b7d68bb551dac1aac57bb (diff) | |
download | bcfg2-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/Tools')
-rw-r--r-- | src/lib/Client/Tools/Action.py | 1 |
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: |