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