mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
changed ansible-test so that it replaces . with - instead of . with _ so that the hostname is valid
This commit is contained in:
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)),
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user