summaryrefslogtreecommitdiffstats
path: root/func/overlord/client.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-09-02 11:53:49 -0400
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-09-02 11:53:49 -0400
commit6b3114db5acd12d853f40cbc16b69720891d70af (patch)
tree1aee501612d7fb3b65082cbea7e76fc0b2aded63 /func/overlord/client.py
parent01e4a97116dbf0518b1f51e4a42f9756919ef64b (diff)
downloadfunc-6b3114db5acd12d853f40cbc16b69720891d70af.tar.gz
func-6b3114db5acd12d853f40cbc16b69720891d70af.tar.xz
func-6b3114db5acd12d853f40cbc16b69720891d70af.zip
better fix for ticket #53 (trailing slashes break cert matching)
Diffstat (limited to 'func/overlord/client.py')
-rwxr-xr-xfunc/overlord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/func/overlord/client.py b/func/overlord/client.py
index 36416ad..12b4c61 100755
--- a/func/overlord/client.py
+++ b/func/overlord/client.py
@@ -117,7 +117,7 @@ class Minions(object):
# use basename to trim off any excess /'s, fix
# ticket #53 "Trailing slash in certmaster.conf confuses glob function
certname = os.path.basename(cert.replace(self.config.certroot, ""))
- host = certname[:(len(self.config.cert_extension) - 1)]
+ host = certname[:-(len(self.config.cert_extension) + 1)]
self.all_hosts.append(host)
def get_all_hosts(self):