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