summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-10-05 20:00:38 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-10-05 20:00:38 +0000
commitdd1f0c5ce0c313804c7a86e3885d6558f74af8ac (patch)
tree14defbf90e719c8053858e62681faeba7d1b19c2 /src/sbin
parent2c9e4ed558fcd85580f9b9cfe9dd77685fec593a (diff)
downloadbcfg2-dd1f0c5ce0c313804c7a86e3885d6558f74af8ac.tar.gz
bcfg2-dd1f0c5ce0c313804c7a86e3885d6558f74af8ac.tar.bz2
bcfg2-dd1f0c5ce0c313804c7a86e3885d6558f74af8ac.zip
add commit hook to bcfg client
(Logical change 1.71) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@359 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rw-r--r--src/sbin/bcfg24
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index badec4d5c..132898ca7 100644
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -179,7 +179,11 @@ if __name__ == '__main__':
# summarize current state
print "--> %s of %s config elements correct"%(client.states.values().count(True), len(client.states.values()))
+
+ # install incorrect aspects of configuration
client.Install()
+ # flush pending changes
+ client.Commit()
print "--> %s of %s config elements correct"%(client.states.values().count(True), len(client.states.values()))
print "bad:"