Project

General

Profile

Bug #26456

maintenance-mode is-enabled exit codes do not match shell habits

Added by Martin Bacovsky 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

In shell it is expected the positive response is indicated by zero exit code. It allows us to do

foreman-maintain maintenance-mode is-enabled || foreman-maintain maintenance-mode start

which is common pattern in shell scripting.

Currently the is-enabled returns the opposite codes which may be confusing for some users.

Associated revisions

Revision a28c98a7 (diff)
Added by Kavita Gaikwad 5 months ago

Fixes #26456 - modified exit codes of maintenance-mode is-enabled

History

#1 Updated by Kavita Gaikwad 5 months ago

  • Assignee set to Kavita Gaikwad

#2 Updated by The Foreman Bot 5 months ago

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

#3 Updated by Kavita Gaikwad 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF