mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
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:
parent
2f2f118665
commit
87c75b19dd
5 changed files with 26 additions and 32 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue