Blame SOURCES/scap-security-guide-0.1.44-fix_no_direct_root_logins_changed_when.patch

0d5c10
From 568ef0aecb14fc7a12255f207e407130d2980c42 Mon Sep 17 00:00:00 2001
0d5c10
From: Watson Sato <wsato@redhat.com>
0d5c10
Date: Thu, 28 Feb 2019 16:08:41 +0100
0d5c10
Subject: [PATCH] Do not compare int and str
0d5c10
0d5c10
securetty_empty.stat.size is int type.
0d5c10
---
0d5c10
 .../root_logins/no_direct_root_logins/ansible/shared.yml        | 2 +-
0d5c10
 1 file changed, 1 insertion(+), 1 deletion(-)
0d5c10
0d5c10
diff --git a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/no_direct_root_logins/ansible/shared.yml b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/no_direct_root_logins/ansible/shared.yml
0d5c10
index 397420f979..cf35f07bb4 100644
0d5c10
--- a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/no_direct_root_logins/ansible/shared.yml
0d5c10
+++ b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/no_direct_root_logins/ansible/shared.yml
0d5c10
@@ -10,7 +10,7 @@
0d5c10
 
0d5c10
 - name: "Direct root Logins Not Allowed"
0d5c10
   shell: echo > /etc/securetty
0d5c10
-  changed_when: securetty_empty.stat.size > "1"
0d5c10
+  changed_when: securetty_empty.stat.size > 1
0d5c10
   tags:
0d5c10
     @ANSIBLE_TAGS@
0d5c10
   @ANSIBLE_ENSURE_PLATFORM@