From: Zack Cerza Date: Thu, 30 Nov 2017 17:03:03 +0000 (-0700) Subject: update_inventory: Canonicalize hostname X-Git-Tag: 1.1.0~375^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e512a1aa0c6bfb0ffdc015d100edfa3dafa1f2db;p=teuthology.git update_inventory: Canonicalize hostname Signed-off-by: Zack Cerza --- diff --git a/scripts/update_inventory.py b/scripts/update_inventory.py index 3185e4414..58c5d77a3 100644 --- a/scripts/update_inventory.py +++ b/scripts/update_inventory.py @@ -3,6 +3,7 @@ import docopt import teuthology import teuthology.lock import teuthology.lock.ops +import teuthology.misc import teuthology.orchestra.remote import logging @@ -28,7 +29,7 @@ def main(): remotes = args.get('REMOTE') for rem_name in remotes: + rem_name = teuthology.misc.canonicalize_hostname(rem_name) remote = teuthology.orchestra.remote.Remote(rem_name) inventory_info = remote.inventory_info teuthology.lock.ops.update_inventory(inventory_info) -