Blame SOURCES/selinux-bz-1926947-no-variable-named-present.diff

6e715b
From 035a9b2db26af071a95e02a0af08bcbb73b69abf Mon Sep 17 00:00:00 2001
6e715b
From: Florian Bachmann <fbachmann.public@gmail.com>
6e715b
Date: Fri, 5 Feb 2021 11:48:53 +0100
6e715b
Subject: [PATCH] fix incorrect default value (there is no variable named
6e715b
 "present")
6e715b
6e715b
---
6e715b
 tasks/main.yml | 4 ++--
6e715b
 1 file changed, 2 insertions(+), 2 deletions(-)
6e715b
6e715b
diff --git a/tasks/main.yml b/tasks/main.yml
6e715b
index afbe81f..702e369 100644
6e715b
--- a/tasks/main.yml
6e715b
+++ b/tasks/main.yml
6e715b
@@ -118,7 +118,7 @@
6e715b
     ports: "{{ item.ports }}"
6e715b
     proto: "{{ item.proto | default('tcp') }}"
6e715b
     setype: "{{ item.setype }}"
6e715b
-    state: "{{ item.state | default(present) }}"
6e715b
+    state: "{{ item.state | default('present') }}"
6e715b
   with_items: "{{ selinux_ports }}"
6e715b
 
6e715b
 - name: Set linux user to SELinux user mapping
6e715b
@@ -126,6 +126,6 @@
6e715b
     login: "{{ item.login }}"
6e715b
     seuser: "{{ item.seuser }}"
6e715b
     serange: "{{ item.serange | default('s0') }}"
6e715b
-    state: "{{ item.state | default(present) }}"
6e715b
+    state: "{{ item.state | default('present') }}"
6e715b
     reload: "{{ item.reload | default(False) }}"
6e715b
   with_items: "{{ selinux_logins }}"
6e715b
-- 
6e715b
2.29.2
6e715b