maintenance-mode is-enabled exit codes do not match shell habits
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.
#3 Updated by Kavita Gaikwad 5 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|a28c98a7342fc424ee8406f850136eb0760fdbdf.