From 9568720a6230f1d918eaf30a53860a0865ff1f32 Mon Sep 17 00:00:00 2001 From: Marek 'marx' Grac Date: Wed, 31 Jul 2013 14:15:58 +0200 Subject: [PATCH 1/6] fence_ilo2: Unable to login when password contains " Resolves: rhbz#990537 --- fence/agents/ilo/fence_ilo.py | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/fence/agents/ilo/fence_ilo.py b/fence/agents/ilo/fence_ilo.py index 4890daa..f8bf795 100644 --- a/fence/agents/ilo/fence_ilo.py +++ b/fence/agents/ilo/fence_ilo.py @@ -12,6 +12,7 @@ ##### import sys, re, pexpect +from xml.sax.saxutils import quoteattr sys.path.append("@FENCEAGENTSLIBDIR@") from fencing import * @@ -22,8 +23,8 @@ BUILD_DATE="March, 2008" #END_VERSION_GENERATION def get_power_status(conn, options): - conn.send("\r\n") + conn.send("\r\n") conn.send("\r\n") conn.send("\r\n") conn.log_expect(options, "HOST_POWER=\"(.*?)\"", int(options["--power-timeout"])) @@ -32,8 +33,8 @@ def get_power_status(conn, options): return status.lower().strip() def set_power_status(conn, options): - conn.send("\r\n") + conn.send("\r\n") conn.send("") if options.has_key("fw_processor") and options["fw_processor"] == "iLO2": @@ -101,8 +102,8 @@ the iLO card through an XML stream." else: conn.send("\r\n") - conn.send("\r\n") + conn.send("\r\n") if options["--ribcl-version"] >= 2: conn.send("\r\n") conn.send("\r\n") -- 1.7.7.6