Fix gauges command parsing
This commit is contained in:
parent
ab5ee589d2
commit
407d5996f0
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue