Blame SOURCES/scap-security-guide-0.1.62-fix_loop_variable_path-PR_8462.patch

5e4bca
From 4385fd471749b21fd2e7e5febe7ba273592a0633 Mon Sep 17 00:00:00 2001
5e4bca
From: Andrew Becker <A-Beck@users.noreply.github.com>
5e4bca
Date: Wed, 30 Mar 2022 16:58:04 -0400
5e4bca
Subject: [PATCH] Fix variable path access issue
5e4bca
5e4bca
Reference the path in the item dictionary, instead of the item dictionary itself
5e4bca
Addresses Issue #8275
5e4bca
---
5e4bca
 shared/templates/sysctl/ansible.template | 2 +-
5e4bca
 1 file changed, 1 insertion(+), 1 deletion(-)
5e4bca
5e4bca
diff --git a/shared/templates/sysctl/ansible.template b/shared/templates/sysctl/ansible.template
5e4bca
index 3837b313e13..f525cf873f7 100644
5e4bca
--- a/shared/templates/sysctl/ansible.template
5e4bca
+++ b/shared/templates/sysctl/ansible.template
5e4bca
@@ -13,7 +13,7 @@
5e4bca
 
5e4bca
 - name: Comment out any occurrences of {{{ SYSCTLVAR }}} from /etc/sysctl.d/*.conf files
5e4bca
   replace:
5e4bca
-    path: "{{ item }}"
5e4bca
+    path: "{{ item.path }}"
5e4bca
     regexp: '^[\s]*{{{ SYSCTLVAR }}}'
5e4bca
     replace: '#{{{ SYSCTLVAR }}}'
5e4bca
   loop: "{{ find_sysctl_d.files }}"