Skip to content

Commit

Permalink
fix python style
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Oct 4, 2023
1 parent 461129b commit 74d724d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LibreNMS/queuemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,11 @@ def do_work(self, device_id, group):
if self.lock(device_id, timeout=self.config.poller.frequency):
logger.info("Polling device {}".format(device_id))

args = ("device:poll", device_id, "-vv") if self.config.debug else ("device:poll", device_id, "-q")
args = (
("device:poll", device_id, "-vv")
if self.config.debug
else ("device:poll", device_id, "-q")
)
exit_code, output = LibreNMS.call_script("lnms", args)

if self.config.log_output:
Expand Down

0 comments on commit 74d724d

Please sign in to comment.