syspatch: Check for apply=no condition (#65350)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-11-30 19:39:54 +05:30 committed by GitHub
parent 38193f6b60
commit 0d34a2ecee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']