From db5d79912267fa5f275810fef166953e9dc148c8 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Fri, 18 Aug 2017 09:47:41 -0400 Subject: [PATCH] Fix nxos_pim idempotence (#28348) --- lib/ansible/modules/network/nxos/nxos_pim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_pim.py b/lib/ansible/modules/network/nxos/nxos_pim.py index ed24bc38e9..cea61c5584 100644 --- a/lib/ansible/modules/network/nxos/nxos_pim.py +++ b/lib/ansible/modules/network/nxos/nxos_pim.py @@ -70,7 +70,7 @@ def get_existing(module, args): for arg in args: command = PARAM_TO_COMMAND_KEYMAP[arg] - has_command = re.match(r'(?:{0}\s)(?P.*)$'.format(command), config, re.M) + has_command = re.search(r'^{0}\s(?P.*)$'.format(command), config, re.M) value = '' if has_command: