diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-29 17:03:44 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-29 17:03:44 +0000 |
commit | d4959f35afba47e1b92f02f00f77b1186aafbacf (patch) | |
tree | 0e8b3dfe23bfe0974e2c0c89155be289eca3a8e5 | |
parent | b6e39a35b883e23992086c8086dbcdc8746484dd (diff) | |
download | bcfg2-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.py | 2 |
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') |