Skip to content

Commit

Permalink
Remove addons CLI command
Browse files Browse the repository at this point in the history
subscription-manager role is no longer recognized.
  • Loading branch information
Glutexo committed Jul 1, 2024
1 parent c3e42fe commit de33e4a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 1 addition & 2 deletions etc-conf/subscription-manager.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ _subscription_manager()

# top-level commands and options
opts="attach auto-attach clean config environments facts identity import list orgs
repo-override plugins redeem refresh register release remove repos role service-level status
repo-override plugins redeem refresh register release remove repos service-level status
syspurpose unregister usage version ${_subscription_manager_help_opts}"

case "${first}" in
Expand All @@ -287,7 +287,6 @@ _subscription_manager()
register|\
release|\
repos|\
role|\
status|\
syspurpose|\
unregister|\
Expand Down
6 changes: 1 addition & 5 deletions man/subscription-manager.8
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ must be passed as system arguments in a non-interactive session.

.RE

Following commands were deprecated: role, service-level, subscribe, unsubscribe, usage, and activate
Following commands were deprecated: service-level, subscribe, unsubscribe, usage, and activate

.SS COMMON OPTIONS
.TP
Expand Down Expand Up @@ -1039,10 +1039,6 @@ This has been replaced with \fBremove\fP.
.B activate
This has been replaced with \fBredeem\fP.

.TP
.B role
This has been replaced with \fBsyspurpose role\fP.

.TP
.B service-level
This has been replaced with \fBsyspurpose service-level\fP.
Expand Down
6 changes: 3 additions & 3 deletions src/subscription_manager/cli_command/syspurpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
class SyspurposeCommand(CliCommand):
"""
Syspurpose command for generic actions. This command replaced the addons
command and will be used for all syspurpose actions in the future. It will
replace role, service-level and usage commands too. It will be possible to
set service-type using this command.
and role commands and will be used for all syspurpose actions in the
future. It will replace service-level and usage commands too. It will be
possible to set service-type using this command.
Note: when the system is not registered, then it doesn't make any sense to
synchronize syspurpose values with candlepin server, because consumer
Expand Down
2 changes: 0 additions & 2 deletions src/subscription_manager/managercli.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from subscription_manager.cli_command.release import ReleaseCommand
from subscription_manager.cli_command.remove import RemoveCommand
from subscription_manager.cli_command.repos import ReposCommand
from subscription_manager.cli_command.role import RoleCommand
from subscription_manager.cli_command.service_level import ServiceLevelCommand
from subscription_manager.cli_command.status import StatusCommand
from subscription_manager.cli_command.syspurpose import SyspurposeCommand
Expand Down Expand Up @@ -78,7 +77,6 @@ def __init__(self):
PluginsCommand,
AutohealCommand,
OverrideCommand,
RoleCommand,
UsageCommand,
FactsCommand,
SyspurposeCommand,
Expand Down

0 comments on commit de33e4a

Please sign in to comment.