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
c9ae19c4
Commit
c9ae19c4
authored
Nov 07, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1547 from dagwieers/action-boolean
Bail out if an action is not a string
parents
612aed55
dfa1e8b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/ansible/playbook/task.py
+4
-0
No files found.
lib/ansible/playbook/task.py
View file @
c9ae19c4
...
...
@@ -127,6 +127,10 @@ class Task(object):
self
.
ignore_errors
=
ds
.
get
(
'ignore_errors'
,
False
)
# action should be a string
if
not
isinstance
(
self
.
action
,
basestring
):
raise
errors
.
AnsibleError
(
"action is of type '
%
s' and not a string in task. name:
%
s"
%
(
type
(
self
.
action
)
.
__name__
,
self
.
name
))
# notify can be a string or a list, store as a list
if
isinstance
(
self
.
notify
,
basestring
):
self
.
notify
=
[
self
.
notify
]
...
...
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