From: Zack Cerza Date: Thu, 15 Aug 2013 14:57:27 +0000 (-0500) Subject: Tweak regex to work for non-FQDN hostnames X-Git-Tag: 1.1.0~1974^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F36%2Fhead;p=teuthology.git Tweak regex to work for non-FQDN hostnames --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 476fd0b48..755af8f52 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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(),