summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-02-20 22:20:27 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-02-20 22:20:27 +0000
commit045d7efed0d6739f4c664499caaa84bd7cc6d935 (patch)
tree9b594dd0d6f4089377b4756190e121656aa853df /src
parent52fc8b90c2665e33da220c757ee7606d2d0893b4 (diff)
downloadbcfg2-045d7efed0d6739f4c664499caaa84bd7cc6d935.tar.gz
bcfg2-045d7efed0d6739f4c664499caaa84bd7cc6d935.tar.bz2
bcfg2-045d7efed0d6739f4c664499caaa84bd7cc6d935.zip
Fix client stats problem where self.structures false entries don't correspond to self.states false entries
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1748 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Toolset.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 01eee9bbd..5334e367f 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -222,8 +222,7 @@ class Toolset(object):
stats.set('version', '2.0')
stats.set('client_version', client_version)
-
- if len([key for key, val in self.structures.iteritems() if not val]) == 0:
+ if len([key for key, val in self.states.iteritems() if not val]) == 0:
stats.set('state', 'clean')
dirty = 0
else: