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
f41d3b9b
Commit
f41d3b9b
authored
Sep 04, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix skipped callback
parent
eed031cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/ansible/callbacks.py
+3
-3
No files found.
lib/ansible/callbacks.py
View file @
f41d3b9b
...
@@ -236,8 +236,8 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
...
@@ -236,8 +236,8 @@ class CliRunnerCallbacks(DefaultRunnerCallbacks):
)
)
super
(
CliRunnerCallbacks
,
self
)
.
on_unreachable
(
host
,
res
)
super
(
CliRunnerCallbacks
,
self
)
.
on_unreachable
(
host
,
res
)
def
on_skipped
(
self
,
host
):
def
on_skipped
(
self
,
host
,
item
=
None
):
super
(
CliRunnerCallbacks
,
self
)
.
on_skipped
(
host
,
res
)
super
(
CliRunnerCallbacks
,
self
)
.
on_skipped
(
host
,
item
)
def
on_error
(
self
,
host
,
err
):
def
on_error
(
self
,
host
,
err
):
print
>>
sys
.
stderr
,
"err: [
%
s] =>
%
s
\n
"
%
(
host
,
err
)
print
>>
sys
.
stderr
,
"err: [
%
s] =>
%
s
\n
"
%
(
host
,
err
)
...
@@ -354,7 +354,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
...
@@ -354,7 +354,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
else
:
else
:
msg
=
"skipping: [
%
s]"
%
host
msg
=
"skipping: [
%
s]"
%
host
print
stringc
(
msg
,
'yellow'
)
print
stringc
(
msg
,
'yellow'
)
super
(
PlaybookRunnerCallbacks
,
self
)
.
on_skipped
(
host
,
item
=
None
)
super
(
PlaybookRunnerCallbacks
,
self
)
.
on_skipped
(
host
,
item
)
def
on_no_hosts
(
self
):
def
on_no_hosts
(
self
):
print
stringc
(
"no hosts matched or remaining
\n
"
,
'red'
)
print
stringc
(
"no hosts matched or remaining
\n
"
,
'red'
)
...
...
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