summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-03-29 17:03:44 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-03-29 17:03:44 +0000
commitd4959f35afba47e1b92f02f00f77b1186aafbacf (patch)
tree0e8b3dfe23bfe0974e2c0c89155be289eca3a8e5
parentb6e39a35b883e23992086c8086dbcdc8746484dd (diff)
downloadbcfg2-d4959f35afba47e1b92f02f00f77b1186aafbacf.tar.gz
bcfg2-d4959f35afba47e1b92f02f00f77b1186aafbacf.tar.bz2
bcfg2-d4959f35afba47e1b92f02f00f77b1186aafbacf.zip
* Fix revision handling (for cases where the server doesn't supply a revision) (fixes Ticket #39)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1815 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Client/Toolset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 9e5c8c97a..fc00f6a7b 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -170,7 +170,7 @@ class Toolset(object):
stats.set('good', str(good))
stats.set('version', '2.0')
stats.set('client_version', client_version)
- stats.set('revision', self.cfg.get('revision'))
+ stats.set('revision', self.cfg.get('revision', '-1'))
if len([key for key, val in self.states.iteritems() if not val]) == 0:
stats.set('state', 'clean')