]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
More hostname normalization
authorZack Cerza <zack.cerza@inktank.com>
Wed, 27 Aug 2014 17:32:39 +0000 (11:32 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 27 Aug 2014 17:32:39 +0000 (11:32 -0600)
This time, for ssh_keyscan()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 7802c586ce6d61116f84376cd63b19bf2ea65355..dd01a9ef0f11670857f3560b2624391e66b57eaf 100644 (file)
@@ -377,6 +377,8 @@ def ssh_keyscan(hostnames):
     """
     Fetch the SSH public key of one or more hosts
     """
+    hostnames = [misc.canonicalize_hostname(name, user=None) for name in
+                 hostnames]
     args = ['ssh-keyscan', '-t', 'rsa']
     if isinstance(hostnames, basestring):
         args.append(hostnames)