Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
6d80c50f
Commit
6d80c50f
authored
Dec 02, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4817 from j2sol/zero-exit
Exit 0 with no matched hosts
parents
c0508724
46554bbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/ansible
+2
-2
No files found.
bin/ansible
View file @
6d80c50f
...
...
@@ -81,8 +81,8 @@ class Cli(object):
inventory_manager
.
subset
(
options
.
subset
)
hosts
=
inventory_manager
.
list_hosts
(
pattern
)
if
len
(
hosts
)
==
0
:
callbacks
.
display
(
"No hosts matched"
,
stderr
=
True
)
sys
.
exit
(
1
)
callbacks
.
display
(
"No hosts matched"
)
sys
.
exit
(
0
)
if
options
.
listhosts
:
for
host
in
hosts
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment