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
48b4805d
Commit
48b4805d
authored
Aug 12, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disallow args: to be specified as a string
parent
7589105c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lib/ansible/runner/__init__.py
+4
-5
No files found.
lib/ansible/runner/__init__.py
View file @
48b4805d
...
...
@@ -215,6 +215,10 @@ class Runner(object):
# changed later via options like accelerate
self
.
original_transport
=
self
.
transport
# enforce complex_args as a dict
if
type
(
self
.
complex_args
)
!=
dict
:
raise
errors
.
AnsibleError
(
"args must be a dictionary, received
%
s (
%
s)"
%
(
self
.
complex_args
,
type
(
self
.
complex_args
)))
# misc housekeeping
if
subset
and
self
.
inventory
.
_subset
is
None
:
# don't override subset when passed from playbook
...
...
@@ -659,11 +663,6 @@ class Runner(object):
# logic to decide how to run things depends on whether with_items is used
if
items
is
None
:
if
isinstance
(
complex_args
,
basestring
):
complex_args
=
template
.
template
(
self
.
basedir
,
complex_args
,
inject
,
convert_bare
=
True
)
complex_args
=
utils
.
safe_eval
(
complex_args
)
if
type
(
complex_args
)
!=
dict
:
raise
errors
.
AnsibleError
(
"args must be a dictionary, received
%
s"
%
complex_args
)
return
self
.
_executor_internal_inner
(
host
,
self
.
module_name
,
self
.
module_args
,
inject
,
port
,
complex_args
=
complex_args
)
elif
len
(
items
)
>
0
:
...
...
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