Blame SOURCES/bz1654616-fence_hpblade-fix-log_expect_syntax.patch

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