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
48c0d638
Commit
48c0d638
authored
Jun 02, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved RAW var to class and as a frozenset
parent
9cd5c809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
lib/ansible/parsing/mod_args.py
+14
-13
No files found.
lib/ansible/parsing/mod_args.py
View file @
48c0d638
...
@@ -25,6 +25,20 @@ from ansible.errors import AnsibleParserError
...
@@ -25,6 +25,20 @@ from ansible.errors import AnsibleParserError
from
ansible.plugins
import
module_loader
from
ansible.plugins
import
module_loader
from
ansible.parsing.splitter
import
parse_kv
from
ansible.parsing.splitter
import
parse_kv
# For filtering out modules correctly below
RAW_PARAM_MODULES
=
frozenset
(
'command'
,
'shell'
,
'script'
,
'include'
,
'include_vars'
,
'add_host'
,
'group_by'
,
'set_fact'
,
'raw'
,
'meta'
,
)
class
ModuleArgsParser
:
class
ModuleArgsParser
:
"""
"""
...
@@ -264,19 +278,6 @@ class ModuleArgsParser:
...
@@ -264,19 +278,6 @@ class ModuleArgsParser:
thing
=
value
thing
=
value
action
,
args
=
self
.
_normalize_parameters
(
value
,
action
=
action
,
additional_args
=
additional_args
)
action
,
args
=
self
.
_normalize_parameters
(
value
,
action
=
action
,
additional_args
=
additional_args
)
# FIXME: this should probably be somewhere else
RAW_PARAM_MODULES
=
(
'command'
,
'shell'
,
'script'
,
'include'
,
'include_vars'
,
'add_host'
,
'group_by'
,
'set_fact'
,
'raw'
,
'meta'
,
)
# if we didn't see any module in the task at all, it's not a task really
# if we didn't see any module in the task at all, it's not a task really
if
action
is
None
:
if
action
is
None
:
raise
AnsibleParserError
(
"no action detected in task"
,
obj
=
self
.
_task_ds
)
raise
AnsibleParserError
(
"no action detected in task"
,
obj
=
self
.
_task_ds
)
...
...
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