mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-25 05:23:58 -07: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): | 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) |     path = os.path.join(fixture_path, name) | ||||||
| 
 | 
 | ||||||
|     if path in fixture_data: |     if path in fixture_data: | ||||||
|  |  | ||||||
|  | @ -61,6 +61,7 @@ class TestDellos10Facts(TestDellos10Module): | ||||||
|                     command = str(command).replace('|', '') |                     command = str(command).replace('|', '') | ||||||
|                 filename = str(command).replace(' ', '_') |                 filename = str(command).replace(' ', '_') | ||||||
|                 filename = filename.replace('/', '7') |                 filename = filename.replace('/', '7') | ||||||
|  |                 filename = filename.replace(':', '_colon_') | ||||||
|                 output.append(load_fixture(filename)) |                 output.append(load_fixture(filename)) | ||||||
|             return output |             return output | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue