mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Import cleanup, plus have /bin/ansible remind you if no hosts were matched by a pattern (for instance, assume
there was a typo in the pattern)
This commit is contained in:
@@ -181,6 +181,9 @@ class Cli(object):
|
||||
if utils.has_dark_hosts(results):
|
||||
buf += utils.dark_hosts_msg(results)
|
||||
|
||||
if not utils.has_hosts(results):
|
||||
print "ERROR: no hosts matched"
|
||||
|
||||
print buf
|
||||
|
||||
########################################################
|
||||
|
||||
Reference in New Issue
Block a user