]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Canonicalize hostnames
authorZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 19:02:04 +0000 (13:02 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 19:02:04 +0000 (13:02 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 5bc9b3c810c5d084963bcd7ed5ee64bb8b06a470..154bf67903e91d83b6fb194e3a04567b3d7010bf 100644 (file)
@@ -235,8 +235,8 @@ def lock_many(ctx, num, machinetype, user=None, description=None):
             headers={'content-type': 'application/json'},
         )
         if response.ok:
-            machines = {machine['name']: machine['ssh_pub_key']
-                        for machine in response.json()}
+            machines = {misc.canonicalize_hostname(machine['name']):
+                        machine['ssh_pub_key'] for machine in response.json()}
             log.debug('locked {machines}'.format(
                 machines=', '.join(machines.keys())))
             if machinetype == 'vps':