Project

General

Profile

Actions

Bug #36369

closed

Consider both 0 and 100 as valid exit codes for check-update yum action

Added by Sayan Das about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Fixed in Releases:
Found in Releases:

Description

Right now in https://github.com/theforeman/foreman_maintain/blob/master/lib/foreman_maintain/package_manager/yum.rb#L70-L73 we only consider exit code 100 as the code_of_success.

But if no package updates are available, Then satellite-maintain fails the check-update step as the exit code, in this case, would be 0.

If no package updates are present and the exit code from yum is 0, then also the check-update action should pass as a successful execution.

Actions #1

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/729 added
Actions #2

Updated by Sayan Das about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by The Foreman Bot 12 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/743 added
Actions

Also available in: Atom PDF