dont warn on not matching 'all' (#32806)

* dont warn on not matching 'all'

the implicit localhost warning shoudl be enough

* centralized no hosts handling

also extended info on implicit only
This commit is contained in:
Brian Coca 2017-12-15 15:43:51 -05:00 committed by GitHub
commit 87c75b19dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 32 deletions

View file

@ -541,7 +541,7 @@ class InventoryManager(object):
if implicit:
results.append(implicit)
if not results:
if not results and pattern != 'all':
display.warning("Could not match supplied host pattern, ignoring: %s" % pattern)
return results