Skip to content

Commit

Permalink
log number of hosts to run on correctly (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
txSangyj authored Jan 3, 2023
1 parent dba1714 commit 2a2248d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nornir/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def run(
if name in self.data.failed_hosts:
run_on.append(host)

num_hosts = len(self.inventory.hosts)
num_hosts = len(run_on)
if num_hosts:
logger.info(
"Running task %r with args %s on %d hosts",
Expand Down

0 comments on commit 2a2248d

Please sign in to comment.