From a6708c6bde467cfced3c4a950eadff0375908303 Mon Sep 17 00:00:00 2001 From: Tomas Jelinek Date: Thu, 23 Jan 2020 14:47:49 +0100 Subject: [PATCH 2/7] update a hint for 'resource create ... master' --- pcs/cli/resource/parse_args.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pcs/cli/resource/parse_args.py b/pcs/cli/resource/parse_args.py index 92dddac9..86280edb 100644 --- a/pcs/cli/resource/parse_args.py +++ b/pcs/cli/resource/parse_args.py @@ -1,5 +1,5 @@ from pcs.cli.common.parse_args import group_by_keywords, prepare_options -from pcs.cli.common.errors import CmdLineInputError, HINT_SYNTAX_CHANGE +from pcs.cli.common.errors import CmdLineInputError, SEE_MAN_CHANGES def parse_create_simple(arg_list): @@ -51,7 +51,14 @@ def parse_create(arg_list): # manpage. # To be removed in the next significant version. if e.message == "missing value of 'master' option": - raise CmdLineInputError(message=e.message, hint=HINT_SYNTAX_CHANGE) + raise CmdLineInputError( + message=e.message, + hint=( + "Master/Slave resources have been renamed to promotable " + "clones, please use the 'promotable' keyword instead of " + "'master'. " + SEE_MAN_CHANGES + ) + ) raise e return parts -- 2.21.1