Blame SOURCES/bz1410881-cisco_ucs-admin.patch

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