Blame SOURCES/bz-fencing_snmp-Fix-KeyError-a-that-results-in-tracebac.patch

d67cb5
From 1d4e75171802d574fdd51914d04498b52073b47b Mon Sep 17 00:00:00 2001
d67cb5
From: Marek 'marx' Grac <mgrac@redhat.com>
d67cb5
Date: Wed, 28 Aug 2013 10:13:56 +0200
d67cb5
Subject: [PATCH 4/6] fencing_snmp: Fix 'KeyError --a' that results in
d67cb5
 traceback
d67cb5
d67cb5
Resolves: rhbz#999146
d67cb5
---
d67cb5
 fence/agents/lib/fencing_snmp.py.py |    2 +-
d67cb5
 1 files changed, 1 insertions(+), 1 deletions(-)
d67cb5
d67cb5
diff --git a/fence/agents/lib/fencing_snmp.py.py b/fence/agents/lib/fencing_snmp.py.py
d67cb5
index 89f8ece..513af20 100644
d67cb5
--- a/fence/agents/lib/fencing_snmp.py.py
d67cb5
+++ b/fence/agents/lib/fencing_snmp.py.py
d67cb5
@@ -71,7 +71,7 @@ class FencingSnmp:
d67cb5
 				('snmp-priv-passwd','X'),('password','A'),('username','u'))
d67cb5
 			for item in mapping_v3:
d67cb5
 				if (self.options.has_key("--"+item[0])):
d67cb5
-					cmd += " -%s '%s'"% (item[1], self.quote_for_run(self.options["--" + item[1]]))
d67cb5
+					cmd += " -%s '%s'"% (item[1], self.quote_for_run(self.options["--" + item[0]]))
d67cb5
 
d67cb5
 		force_ipvx = ""
d67cb5
 
d67cb5
-- 
d67cb5
1.7.7.6
d67cb5