1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
David Newswanger 2017-07-03 18:00:16 -04:00 committed by Matt Clay
parent 5c0c985547
commit 0a6dcf4169
2 changed files with 2 additions and 2 deletions

View file

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

View file

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