Blame SOURCES/bz1410881-cisco_ucs-admin.patch

e4ffb1
From eb43835fc430651712271a046c61eec1c5ecdedb Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Mon, 23 Jan 2017 14:49:14 +0100
e4ffb1
Subject: [PATCH] fence_cisco_ucs: Commands sent to Cisco UCS are changed to
e4ffb1
e4ffb1
Resolves: rhbz#1410881
e4ffb1
---
e4ffb1
 fence/agents/cisco_ucs/fence_cisco_ucs.py | 4 ++--
e4ffb1
 1 file changed, 2 insertions(+), 2 deletions(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py b/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
index d21b278..701f690 100644
e4ffb1
--- a/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
+++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py
e4ffb1
@@ -71,8 +71,8 @@ def set_power_status(conn, options):
e4ffb1
 	del conn
e4ffb1
 
e4ffb1
 	action = {
e4ffb1
-		'on' : "up",
e4ffb1
-		'off' : "down"
e4ffb1
+		'on' : "admin-up",
e4ffb1
+		'off' : "admin-down"
e4ffb1
 	}[options["--action"]]
e4ffb1
 
e4ffb1
 	send_command(options, "<configConfMos cookie=\"" + options["cookie"] + "\" inHierarchical=\"no\">" +
e4ffb1
-- 
e4ffb1
2.4.11
e4ffb1