]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Canonicalize hostnames in yet another place
authorZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 19:31:25 +0000 (13:31 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 19:31:25 +0000 (13:31 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index 6cbf66c03a9da9a79d868851878fb78d184ba97b..d8d247bac8f985ab1d1a0fb3228cd25755732230 100644 (file)
@@ -192,6 +192,7 @@ def timer(ctx, config):
         log.info('Duration was %f seconds', duration)
         ctx.summary['duration'] = duration
 
+
 def connect(ctx, config):
     """
     Open a connection to a remote host.
@@ -202,6 +203,7 @@ def connect(ctx, config):
     for name in ctx.config['targets'].iterkeys():
         machs.append(name)
     for t, key in ctx.config['targets'].iteritems():
+        t = teuthology.canonicalize_hostname(t)
         log.debug('connecting to %s', t)
         try:
             if ctx.config['sshkeys'] == 'ignore':