]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Tweak regex to work for non-FQDN hostnames
authorZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 14:57:27 +0000 (09:57 -0500)
committerZack Cerza <zack@cerza.org>
Thu, 15 Aug 2013 14:57:27 +0000 (09:57 -0500)
teuthology/task/internal.py

index 476fd0b48350bde8b7d5f937b97e3bebabe135bd..755af8f52615bae1c115e660ac6a1279fb89a798 100644 (file)
@@ -517,7 +517,7 @@ def vm_setup(ctx, config):
     with parallel() as p:
         editinfo = os.path.join(os.path.dirname(__file__),'edit_sudoers.sh')
         for remote in ctx.cluster.remotes.iterkeys():
-            mname = re.match(".*@([^\.]*)\..*", str(remote)).group(1) 
+            mname = re.match(".*@([^\.]*)\.?.*", str(remote)).group(1)
             if teuthology.is_vm(mname):
                 r = remote.run(args=['test', '-e', '/ceph-qa-ready',],
                         stdout=StringIO(),