diff options
author | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-09-08 20:11:58 +0000 |
---|---|---|
committer | Ken Raffenetti <raffenet@mcs.anl.gov> | 2006-09-08 20:11:58 +0000 |
commit | 064b4ca0e8d28062dbd028ca61f79798b84e260b (patch) | |
tree | 6457009c86c631e38163bfda55e0a78a757c3088 /src/lib/Server/Plugins/Hostbase.py | |
parent | 77bb154d6526739dc111d576f3ccb2392e2a1832 (diff) | |
download | bcfg2-064b4ca0e8d28062dbd028ca61f79798b84e260b.tar.gz bcfg2-064b4ca0e8d28062dbd028ca61f79798b84e260b.tar.bz2 bcfg2-064b4ca0e8d28062dbd028ca61f79798b84e260b.zip |
minor updates
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2230 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Hostbase.py')
-rw-r--r-- | src/lib/Server/Plugins/Hostbase.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py index 27fe98ef7..204fcc4c8 100644 --- a/src/lib/Server/Plugins/Hostbase.py +++ b/src/lib/Server/Plugins/Hostbase.py @@ -94,7 +94,7 @@ class Hostbase(Plugin): SubElement(output, "ConfigFile", name="/etc/dhcpd.conf") return [output] - def rebuildState(self): + def rebuildState(self, _): '''Pre-cache all state information for hostbase config files''' from django.db import connection @@ -517,3 +517,7 @@ olivia.ctd.anl.gov\n\n""" fileoutput += each + "\n" self.filedata['%s-machines' % netgroup] = fileoutput self.Entries['ConfigFile']['%s-machines' % netgroup] = self.FetchFile + + cursor.execute(""" + UPDATE hostbase_host SET dirty=0 + """) |