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:
parent
d902bd39a3
commit
9ee079f34d
3 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue