diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-12-31 15:51:24 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-12-31 15:51:24 +0000 |
commit | 443883b66c879411d3c25377da9e3c669bae2fb3 (patch) | |
tree | abca304dc6abc8934fe86ef3e58167623df25a5e | |
parent | 98374c47a92c6d6d67a5e552533c27ea5728c66d (diff) | |
download | bcfg2-443883b66c879411d3c25377da9e3c669bae2fb3.tar.gz bcfg2-443883b66c879411d3c25377da9e3c669bae2fb3.tar.bz2 bcfg2-443883b66c879411d3c25377da9e3c669bae2fb3.zip |
SSHbase: Re-add workaround to handle skn caching in event handler
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4154 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugins/SSHbase.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py index 9730f32a9..9064570a8 100644 --- a/src/lib/Server/Plugins/SSHbase.py +++ b/src/lib/Server/Plugins/SSHbase.py @@ -86,6 +86,9 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.DirectoryBacked): Bcfg2.Server.Plugin.DirectoryBacked.HandleEvent(self, event) if event and '_key.pub.H_' in event.filename: self.skn = False + if not self.skn: + if (len(self.entries.keys())) > (0.95 * len(os.listdir(self.data))): + a = self.skn def HandlesEntry(self, entry): '''Handle key entries dynamically''' |