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

further fixes to rename only where required (#35432)

This commit is contained in:
Jordan Borean 2018-01-29 07:02:31 +10:00 committed by GitHub
parent d902bd39a3
commit 9ee079f34d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View file

@ -32,9 +32,6 @@ fixture_data = {}
def load_fixture(name):
# convert illegal filenames (both unix and windows to another char)
name = name.replace(':', '_semicolon_')
path = os.path.join(fixture_path, name)
if path in fixture_data:

View file

@ -61,6 +61,7 @@ class TestDellos10Facts(TestDellos10Module):
command = str(command).replace('|', '')
filename = str(command).replace(' ', '_')
filename = filename.replace('/', '7')
filename = filename.replace(':', '_colon_')
output.append(load_fixture(filename))
return output