From 0a6dcf416994aee365f715d319d3d26fa7830e5b Mon Sep 17 00:00:00 2001 From: David Newswanger Date: Mon, 3 Jul 2017 18:00:16 -0400 Subject: [PATCH] changed ansible-test so that it replaces . with - instead of . with _ so that the hostname is valid --- test/runner/lib/executor.py | 2 +- test/runner/lib/manage_ci.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index ec79bd45b1..c08cb17411 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -327,7 +327,7 @@ def network_inventory(remotes): groups[remote.platform].append( '%s %s' % ( - remote.name.replace('.', '_'), + remote.name.replace('.', '-'), ' '.join('%s="%s"' % (k, options[k]) for k in sorted(options)), ) ) diff --git a/test/runner/lib/manage_ci.py b/test/runner/lib/manage_ci.py index f3e58689f6..b36d244b0b 100644 --- a/test/runner/lib/manage_ci.py +++ b/test/runner/lib/manage_ci.py @@ -78,7 +78,7 @@ class ManageNetworkCI(object): 'ansible_ssh_private_key_file=%s' % self.core_ci.ssh_key.key, ] - name = '%s-%s' % (self.core_ci.platform, self.core_ci.version.replace('.', '_')) + name = '%s-%s' % (self.core_ci.platform, self.core_ci.version.replace('.', '-')) env = ansible_environment(self.core_ci.args) cmd = [