Skip to content

Commit

Permalink
Fixes #36369 - Exit code 0 is a valid exit status
Browse files Browse the repository at this point in the history
(cherry picked from commit f4f5e62)
  • Loading branch information
sayan3296 authored and ehelms committed Jul 10, 2023
1 parent d6b4531 commit 3c0fdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_maintain/package_manager/yum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def clean_cache(assumeyes: false)
end

def check_update(packages: nil, with_status: false)
yum_action('check-update', packages, :assumeyes => true, :valid_exit_statuses => [100],
yum_action('check-update', packages, :assumeyes => true, :valid_exit_statuses => [0, 100],
:with_status => with_status)
end

Expand Down

0 comments on commit 3c0fdd5

Please sign in to comment.