changed ansible-test so that it replaces . with - instead of . with _ so that the hostname is valid

pull/26046/merge
David Newswanger 7 years ago committed by Matt Clay
parent 5c0c985547
commit 0a6dcf4169

@ -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)),
)
)

@ -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 = [

Loading…
Cancel
Save