fix Error in fencing_snmp.py on line 73
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 06:56:32 +0000 (08:56 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Aug 2013 06:56:32 +0000 (08:56 +0200)
see https://bugzilla.redhat.com/show_bug.cgi?id=999146

debian/patches/fix-rh-bug-999146-fencing-snmp-py.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules

diff --git a/debian/patches/fix-rh-bug-999146-fencing-snmp-py.patch b/debian/patches/fix-rh-bug-999146-fencing-snmp-py.patch
new file mode 100644 (file)
index 0000000..7d3ce92
--- /dev/null
@@ -0,0 +1,13 @@
+Index: new/fence/agents/lib/fencing_snmp.py.py
+===================================================================
+--- new.orig/fence/agents/lib/fencing_snmp.py.py       2013-03-15 08:44:49.000000000 +0100
++++ new/fence/agents/lib/fencing_snmp.py.py    2013-08-22 08:51:01.000000000 +0200
+@@ -70,7 +70,7 @@
+                               ('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 = ""
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..8f787af
--- /dev/null
@@ -0,0 +1 @@
+fix-rh-bug-999146-fencing-snmp-py.patch
index ac67cdd..57a6d32 100755 (executable)
@@ -48,7 +48,7 @@ zvm
 DESTDIR=debian/fence-agents-pve/
 
 %:
-       dh $@ 
+       dh --with quilt $@  
 
 override_dh_auto_configure:
        ./configure                                             \