Page MenuHomePhabricator

Cumin: clustershell worker should return if no target are specified
Closed, ResolvedPublic

Description

When using Cumin as a library, if the execute() method is called in the ClusterShell worker with a target that has no hosts, cumin will eventually raise a ZeroDivisionError when calculating the success ratio.
It should instead log a warning and return earlier.

Event Timeline

Change 375769 had a related patch set uploaded (by Volans; owner: Volans):
[operations/software/cumin@master] Transports: better handling of empty list

https://gerrit.wikimedia.org/r/375769

Volans triaged this task as Medium priority.

Change 375769 merged by jenkins-bot:
[operations/software/cumin@master] Transports: better handling of empty list

https://gerrit.wikimedia.org/r/375769