Bug #28685
closedforeman-maintain on Capsule should not show upgrade option
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1730703
Description of problem:
The help output should not offer upgrade option when run on Capsule as that is confusing.
~]# foreman-maintain -h
Usage:
foreman-maintain [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
health Health related commands
upgrade Upgrade related commands <-- Misleading
<snip>
Version-Release number of selected component (if applicable):
[root@qe-capsule-feature-rhel7 ~]# rpm -q satellite-capsule
satellite-capsule-6.6.0-5.beta.el7sat.noarch
[root@qe-capsule-feature-rhel7 ~]# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.4.4-1.el7sat.noarch
How reproducible:
Steps to Reproduce:
1. foreman-maintain -h
Subcommands:
health Health related commands
upgrade Upgrade related commands
service Control applicable services
backup Backup server
restore Restore a backup
packages Lock/Unlock installed packages
advanced Advanced tools for server maintenance
maintenance-mode Control maintenance-mode for application
Actual results:
Subcommands:
health Health related commands
upgrade Upgrade related commands
Expected results:
Subcommands:
health Health related commands
<the next line after upgrade>
Additional info:
Updated by Kavita Gaikwad about 4 years ago
- Assignee changed from Anurag Patel to Amit Upadhye