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