From 0d34a2eceea9178553e23f53ed24ba58e3722833 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sat, 30 Nov 2019 19:39:54 +0530 Subject: [PATCH] syspatch: Check for apply=no condition (#65350) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/system/syspatch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/syspatch.py b/lib/ansible/modules/system/syspatch.py index 3c75f2f2c0b..031422c8cab 100644 --- a/lib/ansible/modules/system/syspatch.py +++ b/lib/ansible/modules/system/syspatch.py @@ -113,7 +113,9 @@ def syspatch_run(module): reboot_needed = False warnings = [] - # Setup command flags + # Set safe defaults for run_flag and check_flag + run_flag = ['-c'] + check_flag = ['-c'] if module.params['revert']: check_flag = ['-l']