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
253fe7be
Commit
253fe7be
authored
Feb 04, 2014
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5662 from RSpiertz/update_playbook_error
PlayBook: better error message
parents
a877b8b0
dec6345f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
lib/ansible/playbook/__init__.py
+11
-2
No files found.
lib/ansible/playbook/__init__.py
View file @
253fe7be
...
...
@@ -95,8 +95,17 @@ class PlayBook(object):
self
.
SETUP_CACHE
=
SETUP_CACHE
if
playbook
is
None
or
callbacks
is
None
or
runner_callbacks
is
None
or
stats
is
None
:
raise
Exception
(
'missing required arguments'
)
arguments
=
[]
if
playbook
is
None
:
arguments
.
append
(
'playbook'
)
if
callbacks
is
None
:
arguments
.
append
(
'callbacks'
)
if
runner_callbacks
is
None
:
arguments
.
append
(
'runner_callbacks'
)
if
stats
is
None
:
arguments
.
append
(
'stats'
)
if
arguments
:
raise
Exception
(
'PlayBook missing required arguments:
%
s'
%
', '
.
join
(
arguments
))
if
extra_vars
is
None
:
extra_vars
=
{}
...
...
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