summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Generators
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-05-13 19:47:26 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-05-13 19:47:26 +0000
commit9a5535c03486a8becb7112878233c6c6c271ba9d (patch)
tree323d5b1bd965f0d5abfbf9a1b00a5f480fac7689 /src/lib/Server/Generators
parent7f30d359f38905ba1a31ee08f955745e55a78ce2 (diff)
downloadbcfg2-9a5535c03486a8becb7112878233c6c6c271ba9d.tar.gz
bcfg2-9a5535c03486a8becb7112878233c6c6c271ba9d.tar.bz2
bcfg2-9a5535c03486a8becb7112878233c6c6c271ba9d.zip
fix for python2.2
(Logical change 1.227) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@949 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Generators')
-rw-r--r--src/lib/Server/Generators/SSHbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/SSHbase.py b/src/lib/Server/Generators/SSHbase.py
index ccff7f95a..7777009a5 100644
--- a/src/lib/Server/Generators/SSHbase.py
+++ b/src/lib/Server/Generators/SSHbase.py
@@ -68,7 +68,7 @@ class SSHbase(Generator):
def cache_skn(self):
'''build memory cache of the ssh known hosts file'''
self.static_skn = ''
- for pubkey in [pubk for pubk in self.repository.entries.keys() if '.pub.H_' in pubk]:
+ for pubkey in [pubk for pubk in self.repository.entries.keys() if pubk.find('.pub.H_') != -1]:
hostname = pubkey.split('H_')[1]
try:
(ipaddr, fqdn) = self.get_ipcache_entry(hostname)