Blame SOURCES/bz1760201-fence_compute-fence_evacuate-2-fix-project-shortopt.patch

21d5fd
From 708d0a8e4e45d4f4a6bee67f0a9ebc0ff573e1ff Mon Sep 17 00:00:00 2001
21d5fd
From: Kumabuchi Kenji <k.kumabuchi+curvygrin@gmail.com>
21d5fd
Date: Fri, 25 Oct 2019 16:34:40 +0900
21d5fd
Subject: [PATCH] fix shortopt in fence-compute / fence_evacuate help messages
21d5fd
21d5fd
Signed-off-by: Kumabuchi Kenji <k.kumabuchi+curvygrin@gmail.com>
21d5fd
---
21d5fd
 agents/compute/fence_compute.py        | 2 +-
21d5fd
 agents/evacuate/fence_evacuate.py      | 2 +-
21d5fd
 tests/data/metadata/fence_compute.xml  | 4 ++--
21d5fd
 tests/data/metadata/fence_evacuate.xml | 4 ++--
21d5fd
 4 files changed, 6 insertions(+), 6 deletions(-)
21d5fd
21d5fd
diff --git a/agents/compute/fence_compute.py b/agents/compute/fence_compute.py
21d5fd
index c08a9dbe..d0e012e6 100644
21d5fd
--- a/agents/compute/fence_compute.py
21d5fd
+++ b/agents/compute/fence_compute.py
21d5fd
@@ -365,7 +365,7 @@ def define_new_opts():
21d5fd
 	all_opt["project-domain"] = {
21d5fd
 		"getopt" : "P:",
21d5fd
 		"longopt" : "project-domain",
21d5fd
-		"help" : "-d, --project-domain=[name]    Keystone v3 Project Domain",
21d5fd
+		"help" : "-P, --project-domain=[name]    Keystone v3 Project Domain",
21d5fd
 		"required" : "0",
21d5fd
 		"shortdesc" : "Keystone v3 Project Domain",
21d5fd
 		"default" : "Default",
21d5fd
diff --git a/agents/evacuate/fence_evacuate.py b/agents/evacuate/fence_evacuate.py
21d5fd
index 76e78b87..60bb130e 100644
21d5fd
--- a/agents/evacuate/fence_evacuate.py
21d5fd
+++ b/agents/evacuate/fence_evacuate.py
21d5fd
@@ -302,7 +302,7 @@ def define_new_opts():
21d5fd
 	all_opt["project-domain"] = {
21d5fd
 		"getopt" : "P:",
21d5fd
 		"longopt" : "project-domain",
21d5fd
-		"help" : "-d, --project-domain=[name]    Keystone v3 Project Domain",
21d5fd
+		"help" : "-P, --project-domain=[name]    Keystone v3 Project Domain",
21d5fd
 		"required" : "0",
21d5fd
 		"shortdesc" : "Keystone v3 Project Domain",
21d5fd
 		"default" : "Default",
21d5fd
diff --git a/tests/data/metadata/fence_compute.xml b/tests/data/metadata/fence_compute.xml
21d5fd
index abc276ca..99d56af0 100644
21d5fd
--- a/tests/data/metadata/fence_compute.xml
21d5fd
+++ b/tests/data/metadata/fence_compute.xml
21d5fd
@@ -74,12 +74,12 @@
21d5fd
 		<shortdesc lang="en">Allow Insecure TLS Requests</shortdesc>
21d5fd
 	</parameter>
21d5fd
 	<parameter name="project-domain" unique="0" required="0" deprecated="1">
21d5fd
-		<getopt mixed="-d, --project-domain=[name]" />
21d5fd
+		<getopt mixed="-P, --project-domain=[name]" />
21d5fd
 		<content type="string" default="Default"  />
21d5fd
 		<shortdesc lang="en">Keystone v3 Project Domain</shortdesc>
21d5fd
 	</parameter>
21d5fd
 	<parameter name="project_domain" unique="0" required="0" obsoletes="project-domain">
21d5fd
-		<getopt mixed="-d, --project-domain=[name]" />
21d5fd
+		<getopt mixed="-P, --project-domain=[name]" />
21d5fd
 		<content type="string" default="Default"  />
21d5fd
 		<shortdesc lang="en">Keystone v3 Project Domain</shortdesc>
21d5fd
 	</parameter>
21d5fd
diff --git a/tests/data/metadata/fence_evacuate.xml b/tests/data/metadata/fence_evacuate.xml
21d5fd
index 7decb05c..8c720b80 100644
21d5fd
--- a/tests/data/metadata/fence_evacuate.xml
21d5fd
+++ b/tests/data/metadata/fence_evacuate.xml
21d5fd
@@ -74,12 +74,12 @@
21d5fd
 		<shortdesc lang="en">Allow Insecure TLS Requests</shortdesc>
21d5fd
 	</parameter>
21d5fd
 	<parameter name="project-domain" unique="0" required="0" deprecated="1">
21d5fd
-		<getopt mixed="-d, --project-domain=[name]" />
21d5fd
+		<getopt mixed="-P, --project-domain=[name]" />
21d5fd
 		<content type="string" default="Default"  />
21d5fd
 		<shortdesc lang="en">Keystone v3 Project Domain</shortdesc>
21d5fd
 	</parameter>
21d5fd
 	<parameter name="project_domain" unique="0" required="0" obsoletes="project-domain">
21d5fd
-		<getopt mixed="-d, --project-domain=[name]" />
21d5fd
+		<getopt mixed="-P, --project-domain=[name]" />
21d5fd
 		<content type="string" default="Default"  />
21d5fd
 		<shortdesc lang="en">Keystone v3 Project Domain</shortdesc>
21d5fd
 	</parameter>