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

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