mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
adjusted list hosts across adhoc and playbook cli
This commit is contained in:
committed by
James Cammarata
parent
3a50c08c01
commit
ced93d35ca
@@ -166,7 +166,7 @@ class PlaybookCLI(CLI):
|
||||
|
||||
if self.options.listhosts:
|
||||
playhosts = set(inventory.get_hosts(play.hosts))
|
||||
msg += "\n pattern: %s\n total hosts: %d\n hosts:" % (play.hosts, len(playhosts))
|
||||
msg += "\n pattern: %s\n hosts (%d):" % (play.hosts, len(playhosts))
|
||||
for host in playhosts:
|
||||
msg += "\n %s" % host
|
||||
|
||||
|
||||
Reference in New Issue
Block a user