def stonith_list_options(lib, argv, modifiers): if len(argv) != 1: raise CmdLineInputError() agent_name = argv[0] print( resource._format_agent_description( lib.stonith_agent.describe_agent(agent_name), True))
def stonith_list_options(lib, argv, modifiers): if len(argv) != 1: raise CmdLineInputError() agent_name = argv[0] print(resource._format_agent_description( lib.stonith_agent.describe_agent(agent_name), True ))
def stonith_list_options(lib, argv, modifiers): """ Options: * --full - show advanced options """ modifiers.ensure_only_supported("--full") if len(argv) != 1: raise CmdLineInputError() agent_name = argv[0] print(resource._format_agent_description( lib.stonith_agent.describe_agent(agent_name), stonith=True, show_all=modifiers.get("--full"), ))
def stonith_list_options(lib, argv, modifiers): """ Options: * --full - show advanced options """ modifiers.ensure_only_supported("--full") if len(argv) != 1: raise CmdLineInputError() agent_name = argv[0] print(resource._format_agent_description( lib.stonith_agent.describe_agent(agent_name), stonith=True, show_all=modifiers.get("--full"), ))