Blob Blame History Raw
diff -uNr a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
--- a/fence/agents/rhevm/fence_rhevm.py	2017-03-21 14:38:42.785643063 +0100
+++ b/fence/agents/rhevm/fence_rhevm.py	2017-03-21 14:40:24.199654871 +0100
@@ -85,6 +85,10 @@
 		api_path = opt["--api-path"]
 	else:
 		api_path = "/ovirt-engine/api"
+	if opt.has_key("--disable-http-filter"):
+		http_filter = 'false'
+	else:
+		http_filter = 'true'
 
 	url += "//" + opt["--ip"] + ":" + str(opt["--ipport"]) + api_path + "/" + command
 
@@ -97,7 +101,7 @@
 		"Content-type: application/xml",
 		"Accept: application/xml",
 		"Prefer: persistent-auth",
-		"Filter: true",
+		"Filter: {}".format(http_filter),
 	])
 
 	if opt.has_key("cookie"):
@@ -154,6 +158,14 @@
 		"required" : "0",
 		"shortdesc" : "The path of the API URL",
 		"order" : 2}
+	all_opt["disable_http_filter"] = {
+		"getopt" : "",
+		"longopt" : "disable-http-filter",
+		"help" : "--disable-http-filter          Set HTTP Filter header to false",
+		"required" : "0",
+		"shortdesc" : "Set HTTP Filter header to false",
+		"order" : 3}
+
 
 def main():
 	device_opt = [
@@ -166,6 +178,7 @@
 		"web",
 		"port",
 		"use_cookies",
+		"disable_http_filter",
 	]
 
 	atexit.register(atexit_handler)
diff -uNr a/tests/data/metadata/fence_rhevm.xml b/tests/data/metadata/fence_rhevm.xml
--- a/tests/data/metadata/fence_rhevm.xml	2017-03-21 14:38:42.808642839 +0100
+++ b/tests/data/metadata/fence_rhevm.xml	2017-03-21 14:40:54.832356380 +0100
@@ -77,6 +77,11 @@
 		<getopt mixed="--api-path=[path]" />
 		<shortdesc lang="en">The path of the API URL</shortdesc>
 	</parameter>
+	<parameter name="disable_http_filter" unique="0" required="0">
+		<getopt mixed="--disable-http-filter" />
+		<content type="boolean"  />
+		<shortdesc lang="en">Set HTTP Filter header to false</shortdesc>
+	</parameter>
 	<parameter name="verbose" unique="0" required="0">
 		<getopt mixed="-v, --verbose" />
 		<content type="boolean"  />