Skip to content

Commit

Permalink
Dev: ui_configure: Remove 'ms' command from 'crm configure' level
Browse files Browse the repository at this point in the history
Since Pacemaker 3.0 already drop support for the master resources.
  • Loading branch information
liangxin1300 committed Jan 9, 2025
1 parent 19b75ea commit 2e14481
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crmsh/ui_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,18 +1055,6 @@ def do_clone(self, context, *args):
[meta <attribute>=<value> [<attribute>=<value>...]]"""
return self.__conf_object(context.get_command_name(), *args)

@command.alias('master')
@command.skill_level('administrator')
@command.completers_repeating(compl.attr_id, _f_children_id_list, _advanced_completer)
def do_ms(self, context, *args):
"""usage: ms <name> <rsc>
[params <param>=<value> [<param>=<value>...]]
[meta <attribute>=<value> [<attribute>=<value>...]]"""
format_str = " " if "meta" in args else " meta "
new_cmd_str = ' '.join(args) + "{}promotable=true".format(format_str)
logger.warning('"ms" is deprecated. Please use "clone {}"'.format(new_cmd_str))
return self.__conf_object(context.get_command_name(), *args)

@command.skill_level('administrator')
@command.completers_repeating(compl.attr_id, ui_ra.complete_class_provider_type,
primitive_complete_complex)
Expand Down

0 comments on commit 2e14481

Please sign in to comment.