From 7f130cac78acc3658fa54a3dd13eabbdc94efba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 19 Oct 2010 09:45:42 +0300 Subject: [PATCH] Fixed supplies parsing from printer-details.py. --- cups/files/printer-details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cups/files/printer-details.py b/cups/files/printer-details.py index da88a19..323303b 100755 --- a/cups/files/printer-details.py +++ b/cups/files/printer-details.py @@ -128,7 +128,7 @@ def getdata(name, addr, templates): baseoid = '.1.3.6.1.2.1.43.11.1.1' data += '

Supplies

\n' snmpdata = snmpwalk('public', addr, baseoid) - keys = map(lambda x: x[-1], filter(lambda x: x.startswith( + keys = map(lambda x: x.split('.')[-1], filter(lambda x: x.startswith( baseoid + '.6.1'), snmpdata.keys())) data += '\n' for k in keys: