Blame SOURCES/update-a-hint-for-resource-create-master.patch

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