mirror of
				https://github.com/zerwes/ansible-fqcn-converter.git
				synced 2025-02-25 18:55:30 -06:00 
			
		
		
		
	simplify check to give precedence to ansible native modules
This commit is contained in:
		| @@ -223,9 +223,7 @@ if not fqcnmapfile or args.updatefqcnmapfile: | ||||
|                 fqcndict[nonfqcn] = [] | ||||
|             if fqcn not in fqcndict[nonfqcn]: | ||||
|                 # this defines the precedence of the replacements made | ||||
|                 if fqcn.startswith('ansible.builtin.'): | ||||
|                     fqcndict[nonfqcn].insert(0, fqcn) | ||||
|                 elif fqcn.startswith('ansible.'): | ||||
|                 if fqcn.startswith('ansible.'): | ||||
|                     fqcndict[nonfqcn].insert(0, fqcn) | ||||
|                 else: | ||||
|                     fqcndict[nonfqcn].append(fqcn) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user