From fa07744831d87e35c862c844031c1f4535050496 Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Mon, 19 Sep 2022 20:45:14 +0200 Subject: [PATCH] simplify check to give precedence to ansible native modules --- fqcn-fixer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fqcn-fixer.py b/fqcn-fixer.py index 4d18913..9da797c 100755 --- a/fqcn-fixer.py +++ b/fqcn-fixer.py @@ -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)