]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Revert "Canonicalize hostnames"
authorZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 20:40:40 +0000 (14:40 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 20:40:40 +0000 (14:40 -0600)
This reverts commit 29e8deefaeef21d1e7f6c40d6fca2605324dec69.

teuthology/lock.py

index 154bf67903e91d83b6fb194e3a04567b3d7010bf..5bc9b3c810c5d084963bcd7ed5ee64bb8b06a470 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 = {misc.canonicalize_hostname(machine['name']):
-                        machine['ssh_pub_key'] for machine in response.json()}
+            machines = {machine['name']: machine['ssh_pub_key']
+                        for machine in response.json()}
             log.debug('locked {machines}'.format(
                 machines=', '.join(machines.keys())))
             if machinetype == 'vps':