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
8478e826
Commit
8478e826
authored
Oct 18, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4583 enforce that vars_files is a list
parent
92edf99c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/ansible/playbook/play.py
+4
-0
No files found.
lib/ansible/playbook/play.py
View file @
8478e826
...
@@ -74,6 +74,8 @@ class Play(object):
...
@@ -74,6 +74,8 @@ class Play(object):
# We first load the vars files from the datastructure
# We first load the vars files from the datastructure
# so we have the default variables to pass into the roles
# so we have the default variables to pass into the roles
self
.
vars_files
=
ds
.
get
(
'vars_files'
,
[])
self
.
vars_files
=
ds
.
get
(
'vars_files'
,
[])
if
not
isinstance
(
self
.
vars_files
,
list
):
raise
errors
.
AnsibleError
(
'vars_files must be a list'
)
self
.
_update_vars_files_for_host
(
None
)
self
.
_update_vars_files_for_host
(
None
)
# now we load the roles into the datastructure
# now we load the roles into the datastructure
...
@@ -83,6 +85,8 @@ class Play(object):
...
@@ -83,6 +85,8 @@ class Play(object):
# and finally re-process the vars files as they may have
# and finally re-process the vars files as they may have
# been updated by the included roles
# been updated by the included roles
self
.
vars_files
=
ds
.
get
(
'vars_files'
,
[])
self
.
vars_files
=
ds
.
get
(
'vars_files'
,
[])
if
not
isinstance
(
self
.
vars_files
,
list
):
raise
errors
.
AnsibleError
(
'vars_files must be a list'
)
self
.
_update_vars_files_for_host
(
None
)
self
.
_update_vars_files_for_host
(
None
)
# template everything to be efficient, but do not pre-mature template
# template everything to be efficient, but do not pre-mature template
...
...
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