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
21c14363
Commit
21c14363
authored
Jun 29, 2015
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow callback plugins to be whitelisted
parent
e1991d9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/ansible/constants.py
+1
-0
lib/ansible/executor/task_queue_manager.py
+2
-0
No files found.
lib/ansible/constants.py
View file @
21c14363
...
...
@@ -188,6 +188,7 @@ DEPRECATION_WARNINGS = get_config(p, DEFAULTS, 'deprecation_warnings',
DEFAULT_CALLABLE_WHITELIST
=
get_config
(
p
,
DEFAULTS
,
'callable_whitelist'
,
'ANSIBLE_CALLABLE_WHITELIST'
,
[],
islist
=
True
)
COMMAND_WARNINGS
=
get_config
(
p
,
DEFAULTS
,
'command_warnings'
,
'ANSIBLE_COMMAND_WARNINGS'
,
False
,
boolean
=
True
)
DEFAULT_LOAD_CALLBACK_PLUGINS
=
get_config
(
p
,
DEFAULTS
,
'bin_ansible_callbacks'
,
'ANSIBLE_LOAD_CALLBACK_PLUGINS'
,
False
,
boolean
=
True
)
DEFAULT_CALLBACK_WHITELIST
=
get_config
(
p
,
DEFAULTS
,
'callback_whitelist'
,
'ANSIBLE_CALLBACK_WHITELIST'
,
None
,
islist
=
True
)
RETRY_FILES_ENABLED
=
get_config
(
p
,
DEFAULTS
,
'retry_files_enabled'
,
'ANSIBLE_RETRY_FILES_ENABLED'
,
True
,
boolean
=
True
)
RETRY_FILES_SAVE_PATH
=
get_config
(
p
,
DEFAULTS
,
'retry_files_save_path'
,
'ANSIBLE_RETRY_FILES_SAVE_PATH'
,
'~/'
)
...
...
lib/ansible/executor/task_queue_manager.py
View file @
21c14363
...
...
@@ -144,6 +144,8 @@ class TaskQueueManager:
if
callback_name
!=
stdout_callback
or
stdout_callback_loaded
:
continue
stdout_callback_loaded
=
True
elif
C
.
DEFAULT_CALLBACK_WHITELIST
is
not
None
and
callback_name
not
in
C
.
DEFAULT_CALLBACK_WHITELIST
:
continue
loaded_plugins
.
append
(
callback_plugin
(
self
.
_display
))
else
:
...
...
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