]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use Remote.shortname instead of regex
authorZack Cerza <zack.cerza@inktank.com>
Fri, 22 Aug 2014 17:23:05 +0000 (11:23 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 17:14:38 +0000 (11:14 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/internal.py

index c5256fd89b324b2ebe63401705298791e11e7f06..6cbf66c03a9da9a79d868851878fb78d184ba97b 100644 (file)
@@ -553,6 +553,7 @@ kern.* -{adir}/syslog/kern.log;RSYSLOG_FileFormat
                 ),
             )
 
+
 def vm_setup(ctx, config):
     """
     Look for virtual machines and handle their initialization
@@ -560,7 +561,7 @@ def vm_setup(ctx, config):
     with parallel() as p:
         editinfo = os.path.join(os.path.dirname(__file__),'edit_sudoers.sh')
         for rem in ctx.cluster.remotes.iterkeys():
-            mname = re.match(".*@([^\.]*)\.?.*", str(rem)).group(1)
+            mname = rem.shortname
             if teuthology.is_vm(mname):
                 r = rem.run(args=['test', '-e', '/ceph-qa-ready',],
                         stdout=StringIO(),