Blame SOURCES/bz1479851-fence_compute-fence_scsi-fix-parameters.patch

aeba56
diff -uNr a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
aeba56
--- a/fence/agents/compute/fence_compute.py	2017-07-24 12:16:11.193996848 +0200
aeba56
+++ b/fence/agents/compute/fence_compute.py	2017-07-24 12:18:18.012271280 +0200
aeba56
@@ -367,7 +367,7 @@
aeba56
 	logging.warning("Couldn't obtain a supported connection to nova, tried: %s\n" % repr(versions))
aeba56
 
aeba56
 def define_new_opts():
aeba56
-	all_opt["endpoint-type"] = {
aeba56
+	all_opt["endpoint_type"] = {
aeba56
 		"getopt" : "e:",
aeba56
 		"longopt" : "endpoint-type",
aeba56
 		"help" : "-e, --endpoint-type=[endpoint] Nova Endpoint type (publicURL, internalURL, adminURL)",
aeba56
@@ -376,7 +376,7 @@
aeba56
 		"default" : "internalURL",
aeba56
 		"order": 1,
aeba56
 	}
aeba56
-	all_opt["tenant-name"] = {
aeba56
+	all_opt["tenant_name"] = {
aeba56
 		"getopt" : "t:",
aeba56
 		"longopt" : "tenant-name",
aeba56
 		"help" : "-t, --tenant-name=[tenant]     Keystone Admin Tenant",
aeba56
@@ -385,7 +385,7 @@
aeba56
 		"default" : "",
aeba56
 		"order": 1,
aeba56
 	}
aeba56
-	all_opt["auth-url"] = {
aeba56
+	all_opt["auth_url"] = {
aeba56
 		"getopt" : "k:",
aeba56
 		"longopt" : "auth-url",
aeba56
 		"help" : "-k, --auth-url=[url]           Keystone Admin Auth URL",
aeba56
@@ -394,7 +394,7 @@
aeba56
 		"default" : "",
aeba56
 		"order": 1,
aeba56
 	}
aeba56
-	all_opt["region-name"] = {
aeba56
+	all_opt["region_name"] = {
aeba56
 		"getopt" : "",
aeba56
 		"longopt" : "region-name",
aeba56
 		"help" : "--region-name=[region]         Region Name",
aeba56
@@ -420,7 +420,7 @@
aeba56
 		"shortdesc" : "DNS domain in which hosts live",
aeba56
 		"order": 5,
aeba56
 	}
aeba56
-	all_opt["record-only"] = {
aeba56
+	all_opt["record_only"] = {
aeba56
 		"getopt" : "r:",
aeba56
 		"longopt" : "record-only",
aeba56
 		"help" : "--record-only                  Record the target as needing evacuation but as yet do not intiate it",
aeba56
@@ -429,7 +429,7 @@
aeba56
 		"default" : "False",
aeba56
 		"order": 5,
aeba56
 	}
aeba56
-	all_opt["instance-filtering"] = {
aeba56
+	all_opt["instance_filtering"] = {
aeba56
 		"getopt" : "",
aeba56
 		"longopt" : "instance-filtering",
aeba56
 		"help" : "--instance-filtering           Allow instances created from images and flavors with evacuable=true to be evacuated (or all if no images/flavors have been tagged)",
aeba56
@@ -438,7 +438,7 @@
aeba56
 		"default" : "True",
aeba56
 		"order": 5,
aeba56
 	}
aeba56
-	all_opt["no-shared-storage"] = {
aeba56
+	all_opt["no_shared_storage"] = {
aeba56
 		"getopt" : "",
aeba56
 		"longopt" : "no-shared-storage",
aeba56
 		"help" : "--no-shared-storage            Disable functionality for shared storage",
aeba56
@@ -452,9 +452,9 @@
aeba56
 	global override_status
aeba56
 	atexit.register(atexit_handler)
aeba56
 
aeba56
-	device_opt = ["login", "passwd", "tenant-name", "auth-url", "fabric_fencing", 
aeba56
-		"no_login", "no_password", "port", "domain", "no-shared-storage", "endpoint-type",
aeba56
-		"record-only", "instance-filtering", "insecure", "region-name"]
aeba56
+	device_opt = ["login", "passwd", "tenant_name", "auth_url", "fabric_fencing", 
aeba56
+		"no_login", "no_password", "port", "domain", "no_shared_storage", "endpoint_type",
aeba56
+		"record_only", "instance_filtering", "insecure", "region_name"]
aeba56
 	define_new_opts()
aeba56
 	all_opt["shell_timeout"]["default"] = "180"
aeba56
 
aeba56
diff -uNr a/fence/agents/scsi/fence_scsi.py b/fence/agents/scsi/fence_scsi.py
aeba56
--- a/fence/agents/scsi/fence_scsi.py	2017-07-24 12:16:11.135997637 +0200
aeba56
+++ b/fence/agents/scsi/fence_scsi.py	2017-07-24 12:20:21.987584397 +0200
aeba56
@@ -332,7 +332,7 @@
aeba56
 		"shortdesc" : "Log output (stdout and stderr) to file",
aeba56
 		"order": 5
aeba56
 	}
aeba56
-	all_opt["corosync-cmap_path"] = {
aeba56
+	all_opt["corosync_cmap_path"] = {
aeba56
 		"getopt" : "Z:",
aeba56
 		"longopt" : "corosync-cmap-path",
aeba56
 		"help" : "--corosync-cmap-path=[path]    Path to corosync-cmapctl binary",
aeba56
@@ -416,7 +416,7 @@
aeba56
 	atexit.register(atexit_handler)
aeba56
 
aeba56
 	device_opt = ["no_login", "no_password", "devices", "nodename", "key",\
aeba56
-	"aptpl", "fabric_fencing", "on_target", "corosync-cmap_path",\
aeba56
+	"aptpl", "fabric_fencing", "on_target", "corosync_cmap_path",\
aeba56
 	"sg_persist_path", "sg_turs_path", "logfile", "vgs_path", "force_on"]
aeba56
 
aeba56
 	define_new_opts()