diff options
author | Michael DeHaan <michael@ansible.com> | 2014-07-28 10:47:27 -0400 |
---|---|---|
committer | Michael DeHaan <michael@ansible.com> | 2014-07-28 10:47:27 -0400 |
commit | 5a4f39bfbfe67a96d061740f09ca29b7ae90a67a (patch) | |
tree | d49c510391042495898a018caaa9ad7b2114a1d0 | |
parent | f88bf574630db3daac1318fa7c65465f5d58a964 (diff) | |
download | ansible-release1.6.8.tar.gz |
Make "No hosts matched" go to stderr.release1.6.8
-rwxr-xr-x | bin/ansible | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ansible b/bin/ansible index 1e2540fafb..b1d91cb733 100755 --- a/bin/ansible +++ b/bin/ansible @@ -94,7 +94,7 @@ class Cli(object): inventory_manager.subset(options.subset) hosts = inventory_manager.list_hosts(pattern) if len(hosts) == 0: - callbacks.display("No hosts matched") + callbacks.display("No hosts matched", stderr=True) sys.exit(0) if options.listhosts: @@ -141,7 +141,7 @@ class Cli(object): inventory_manager.subset(options.subset) hosts = inventory_manager.list_hosts(pattern) if len(hosts) == 0: - callbacks.display("No hosts matched") + callbacks.display("No hosts matched", stderr=True) sys.exit(0) if options.listhosts: |