]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
update_inventory: Canonicalize hostname 1126/head
authorZack Cerza <zack@redhat.com>
Thu, 30 Nov 2017 17:03:03 +0000 (10:03 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 30 Nov 2017 19:15:42 +0000 (12:15 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
scripts/update_inventory.py

index 3185e4414932762e3c37db15cc1d452c6c48d420..58c5d77a3c835d50ad08752d712f5c9bfb7d7430 100644 (file)
@@ -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)
-