Blame SOURCES/bz1652115-fence_hpblade-fix-log_expect-syntax.patch

7f4c66
From 342570c5a5af4c277be283507ef7898a078e2df9 Mon Sep 17 00:00:00 2001
7f4c66
From: mmartinv <32071463+mmartinv@users.noreply.github.com>
7f4c66
Date: Fri, 16 Nov 2018 12:55:58 +0100
7f4c66
Subject: [PATCH] Fix 'log_expect' in fence_hpblade.py
7f4c66
7f4c66
Update the 'log_expect' call to the new method definition.
7f4c66
---
7f4c66
 agents/hpblade/fence_hpblade.py | 8 ++++----
7f4c66
 1 file changed, 4 insertions(+), 4 deletions(-)
7f4c66
7f4c66
diff --git a/agents/hpblade/fence_hpblade.py b/agents/hpblade/fence_hpblade.py
7f4c66
index b2cc94a3..fbc89f61 100644
7f4c66
--- a/agents/hpblade/fence_hpblade.py
7f4c66
+++ b/agents/hpblade/fence_hpblade.py
7f4c66
@@ -16,7 +16,7 @@
7f4c66
 
7f4c66
 def get_enclosure_type(conn, options):
7f4c66
 	conn.send_eol("show enclosure info")
7f4c66
-	conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
+	conn.log_expect(options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
 
7f4c66
 	type_re=re.compile(r"^\s*Enclosure Type: (\w+)(.*?)\s*$")
7f4c66
 	enclosure="unknown"
7f4c66
@@ -39,7 +39,7 @@ def get_power_status(conn, options):
7f4c66
 		powrestr = "^\\s*Power: (.*?)\\s*$"
7f4c66
 
7f4c66
 	conn.send_eol(cmd_send)
7f4c66
-	conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
+	conn.log_expect(options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
 
7f4c66
 	power_re = re.compile(powrestr)
7f4c66
 	status = "unknown"
7f4c66
@@ -72,7 +72,7 @@ def set_power_status(conn, options):
7f4c66
 		conn.send_eol("poweron " + dev + options["--plug"])
7f4c66
 	elif options["--action"] == "off":
7f4c66
 		conn.send_eol("poweroff " + dev + options["--plug"] + " force")
7f4c66
-	conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
+	conn.log_expect(options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
 
7f4c66
 def get_instances_list(conn, options):
7f4c66
 	outlets = {}
7f4c66
@@ -84,7 +84,7 @@ def get_instances_list(conn, options):
7f4c66
 		listrestr = "^\\s*(\\d+)\\s+(.*?)\\s+(.*?)\\s+OK\\s+(.*?)\\s+(.*?)\\s*$"
7f4c66
 
7f4c66
 	conn.send_eol(cmd_send)
7f4c66
-	conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
+	conn.log_expect(options["--command-prompt"], int(options["--shell-timeout"]))
7f4c66
 
7f4c66
 	list_re = re.compile(listrestr)
7f4c66
 	for line in conn.before.splitlines():