Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 24e278e14a25367b8cb2fce8af484abd > files > 11

cman-2.0.115-96.el5_8.3.src.rpm

commit 5a518f3cb382c2711bd027916164c7ac45ab3e3e
Author: Marek 'marx' Grac <mgrac@redhat.com>
Date:   Fri Jul 8 09:54:42 2011 +0200

    fence_drac5: Incorrect output of 'list' operation on Drac 5
    
    Previously (due to other bug) fence agents operation 'list' was not
    working properly. After fixing that issue, drac5 returned empty line
    instead of N/A as an output for 'list'. This happends because fencing
    library does not have support for situations when for one fence agents
    there are fence devices that supports / not supports 'list' option.
    
    Resolves: rhbz#718194 (regression introduced by previous patch)

diff --git a/fence/agents/drac/fence_drac5.py b/fence/agents/drac/fence_drac5.py
index 53676ee..5e72e42 100644
--- a/fence/agents/drac/fence_drac5.py
+++ b/fence/agents/drac/fence_drac5.py
@@ -72,6 +72,10 @@ def get_list_devices(conn, options):
 					outlets[list_re.search(line).group(1)] = ("", list_re.search(line).group(2))
 		elif options["model"] == "DRAC 5":
 			## DRAC 5 can be used only for one computer
+			## standard fence library can't handle correctly situation
+			## when some fence devices supported by fence agent
+			## works with 'list' and other should returns 'N/A'
+			print "N/A"
 			pass
 	except pexpect.EOF:
 		fail(EC_CONNECTION_LOST)