Actions
Bug #26456
closedmaintenance-mode is-enabled exit codes do not match shell habits
Difficulty:
Triaged:
No
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.
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/252 added
Updated by Kavita Gaikwad about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|a28c98a7342fc424ee8406f850136eb0760fdbdf.
Actions