From: Zack Cerza Date: Mon, 25 Aug 2014 19:02:04 +0000 (-0600) Subject: Canonicalize hostnames X-Git-Tag: 1.1.0~1219 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29e8deefaeef21d1e7f6c40d6fca2605324dec69;p=teuthology.git Canonicalize hostnames Signed-off-by: Zack Cerza --- diff --git a/teuthology/lock.py b/teuthology/lock.py index 5bc9b3c8..154bf679 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -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':