From 407d5996f0961a99890c508cff155b1cf48fa16f Mon Sep 17 00:00:00 2001 From: Florent Fourcot Date: Fri, 17 May 2013 00:07:03 +0200 Subject: [PATCH] Fix gauges command parsing --- weboob/applications/wetboobs/wetboobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/applications/wetboobs/wetboobs.py b/weboob/applications/wetboobs/wetboobs.py index 3c548870..28aa0328 100644 --- a/weboob/applications/wetboobs/wetboobs.py +++ b/weboob/applications/wetboobs/wetboobs.py @@ -206,10 +206,10 @@ class WetBoobs(ReplApplication): Iter sensors of a gauge. """ - gauge, = self.parse_command_args(line, 1, 1) + gauge, pattern = self.parse_command_args(line, 2, 1) _id, backend_name = self.parse_id(gauge) self.start_format() - for backend, sensor in self.do('iter_sensors', _id, backends=backend_name, caps=ICapGauge): + for backend, sensor in self.do('iter_sensors', _id, pattern=pattern, backends=backend_name, caps=ICapGauge): self.format(sensor) self.flush()