Blame SOURCES/bz1565701-fence_compute-fence_evacuate-fix-parameters.patch

3fe01d
diff -uNr a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
3fe01d
--- a/fence/agents/compute/fence_compute.py	2018-03-22 12:34:45.989618362 +0100
3fe01d
+++ b/fence/agents/compute/fence_compute.py	2018-03-22 12:44:11.679816557 +0100
3fe01d
@@ -353,7 +353,7 @@
3fe01d
 		"default" : "",
3fe01d
 		"order": 1,
3fe01d
 	}
3fe01d
-	all_opt["user-domain"] = {
3fe01d
+	all_opt["user_domain"] = {
3fe01d
 		"getopt" : "u:",
3fe01d
 		"longopt" : "user-domain",
3fe01d
 		"help" : "-u, --user-domain=[name]       Keystone v3 User Domain",
3fe01d
@@ -362,7 +362,7 @@
3fe01d
 		"default" : "Default",
3fe01d
 		"order": 2,
3fe01d
 	}
3fe01d
-	all_opt["project-domain"] = {
3fe01d
+	all_opt["project_domain"] = {
3fe01d
 		"getopt" : "P:",
3fe01d
 		"longopt" : "project-domain",
3fe01d
 		"help" : "-d, --project-domain=[name]    Keystone v3 Project Domain",
3fe01d
@@ -398,7 +398,7 @@
3fe01d
 		"default" : "False",
3fe01d
 		"order": 2,
3fe01d
 	}
3fe01d
-	all_opt["compute-domain"] = {
3fe01d
+	all_opt["domain"] = {
3fe01d
 		"getopt" : "d:",
3fe01d
 		"longopt" : "domain",
3fe01d
 		"help" : "-d, --domain=[string]          DNS domain in which hosts live, useful when the cluster uses short names and nova uses FQDN",
3fe01d
@@ -451,7 +451,7 @@
3fe01d
 	atexit.register(atexit_handler)
3fe01d
 
3fe01d
 	device_opt = ["login", "passwd", "tenant_name", "auth_url", "fabric_fencing",
3fe01d
-		      "no_login", "no_password", "port", "compute-domain", "project-domain", "user-domain",
3fe01d
+		      "no_login", "no_password", "port", "domain", "project_domain", "user_domain",
3fe01d
 		      "no_shared_storage", "endpoint_type", "record_only", "instance_filtering", "insecure", "region_name"]
3fe01d
 	define_new_opts()
3fe01d
 	all_opt["shell_timeout"]["default"] = "180"
3fe01d
diff -uNr a/fence/agents/compute/fence_evacuate.py b/fence/agents/compute/fence_evacuate.py
3fe01d
--- a/fence/agents/compute/fence_evacuate.py	2018-03-22 12:34:45.990618353 +0100
3fe01d
+++ b/fence/agents/compute/fence_evacuate.py	2018-03-22 12:44:21.157735516 +0100
3fe01d
@@ -287,7 +287,7 @@
3fe01d
 		"default" : "",
3fe01d
 		"order": 1,
3fe01d
 	}
3fe01d
-	all_opt["user-domain"] = {
3fe01d
+	all_opt["user_domain"] = {
3fe01d
 		"getopt" : "u:",
3fe01d
 		"longopt" : "user-domain",
3fe01d
 		"help" : "-u, --user-domain=[name]       Keystone v3 User Domain",
3fe01d
@@ -296,7 +296,7 @@
3fe01d
 		"default" : "Default",
3fe01d
 		"order": 2,
3fe01d
 	}
3fe01d
-	all_opt["project-domain"] = {
3fe01d
+	all_opt["project_domain"] = {
3fe01d
 		"getopt" : "P:",
3fe01d
 		"longopt" : "project-domain",
3fe01d
 		"help" : "-d, --project-domain=[name]    Keystone v3 Project Domain",
3fe01d
@@ -332,7 +332,7 @@
3fe01d
 		"default" : "False",
3fe01d
 		"order": 2,
3fe01d
 	}
3fe01d
-	all_opt["compute-domain"] = {
3fe01d
+	all_opt["domain"] = {
3fe01d
 		"getopt" : "d:",
3fe01d
 		"longopt" : "domain",
3fe01d
 		"help" : "-d, --domain=[string]                  DNS domain in which hosts live, useful when the cluster uses short names and nova uses FQDN",
3fe01d
@@ -363,8 +363,8 @@
3fe01d
 	atexit.register(atexit_handler)
3fe01d
 
3fe01d
 	device_opt = ["login", "passwd", "tenant_name", "auth_url",
3fe01d
-		      "no_login", "no_password", "port", "compute-domain", "project-domain",
3fe01d
-		      "user-domain", "no_shared_storage", "endpoint_type",
3fe01d
+		      "no_login", "no_password", "port", "domain", "project_domain",
3fe01d
+		      "user_domain", "no_shared_storage", "endpoint_type",
3fe01d
 		      "instance_filtering", "insecure", "region_name"]
3fe01d
 	define_new_opts()
3fe01d
 	all_opt["shell_timeout"]["default"] = "180"