fence-agents: RHEL6 - fence_cisco_ucs: Respect "delay" option

Marek GrĂ¡c marx at fedoraproject.org
Wed Jun 26 12:05:19 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=068f61c638b2ef88badfd1a5d89b92cc77c4df14
Commit:        068f61c638b2ef88badfd1a5d89b92cc77c4df14
Parent:        7925014f449fe751b93dbc3bd6cf1d847d047d0e
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Jun 26 13:46:58 2013 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Jun 26 13:46:58 2013 +0200

fence_cisco_ucs: Respect "delay" option

Resolves: rhbz#896603
---
 fence/agents/cisco_ucs/fence_cisco_ucs.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fence/agents/cisco_ucs/fence_cisco_ucs.py b/fence/agents/cisco_ucs/fence_cisco_ucs.py
index eda6aed..19b2086 100644
--- a/fence/agents/cisco_ucs/fence_cisco_ucs.py
+++ b/fence/agents/cisco_ucs/fence_cisco_ucs.py
@@ -117,6 +117,9 @@ used with Cisco UCS to fence machines."
 	show_docs(options, docs)
 
 	### Login
+	if options["-o"] in ["off", "reboot"]:
+		time.sleep(int(options["-f"]))
+
 	res = send_command(options, "<aaaLogin inName=\"" + options["-l"] + "\" inPassword=\"" + options["-p"] + "\" />")
 	result = re_cookie.search(res)
 	if (result == None):	


More information about the cluster-commits mailing list