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

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