From 8a5490ea5faac5c71fd1678999e833d4d14ef883 Mon Sep 17 00:00:00 2001 From: Ken Evensen Date: Wed, 12 Jul 2017 11:01:05 -0400 Subject: [PATCH] Fix for #26633 (#26653) --- lib/ansible/modules/system/pamd.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/system/pamd.py b/lib/ansible/modules/system/pamd.py index 161d12bbe9f..d1d9a3615d7 100644 --- a/lib/ansible/modules/system/pamd.py +++ b/lib/ansible/modules/system/pamd.py @@ -448,9 +448,7 @@ def insert_before_rule(service, old_rule, new_rule): new_rule.rule_control != service.rules[index - 1].rule_control or new_rule.rule_module_path != - service.rules[index - 1].rule_module_path or - new_rule.rule_module_args != - service.rules[index - 1].rule_module_args): + service.rules[index - 1].rule_module_path): service.rules.insert(index, new_rule) changed = True if changed: @@ -475,9 +473,7 @@ def insert_after_rule(service, old_rule, new_rule): new_rule.rule_control != service.rules[index + 1].rule_control or new_rule.rule_module_path != - service.rules[index + 1].rule_module_path or - new_rule.rule_module_args != - service.rules[index + 1].rule_module_args): + service.rules[index + 1].rule_module_path): service.rules.insert(index + 1, new_rule) changed = True if changed: