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:
Michael DeHaan
2012-03-18 17:53:58 -04:00
parent fde7de80df
commit 9c5ec886a6
4 changed files with 20 additions and 10 deletions

View File

@@ -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
########################################################