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
3714c074
Commit
3714c074
authored
Jul 25, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split args on single spaces only
parent
19bdc92a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
lib/ansible/utils/splitter.py
+1
-3
No files found.
lib/ansible/utils/splitter.py
View file @
3714c074
...
@@ -75,7 +75,7 @@ def split_args(args):
...
@@ -75,7 +75,7 @@ def split_args(args):
do_decode
=
True
do_decode
=
True
except
UnicodeDecodeError
:
except
UnicodeDecodeError
:
do_decode
=
False
do_decode
=
False
tokens
=
args
.
split
()
tokens
=
args
.
split
(
' '
)
# iterate over the tokens, and reassemble any that may have been
# iterate over the tokens, and reassemble any that may have been
# split on a space inside a jinja2 block.
# split on a space inside a jinja2 block.
...
@@ -95,8 +95,6 @@ def split_args(args):
...
@@ -95,8 +95,6 @@ def split_args(args):
# split occurred within quotes or a jinja2 block of some kind
# split occurred within quotes or a jinja2 block of some kind
for
token
in
tokens
:
for
token
in
tokens
:
token
=
token
.
strip
()
# store the previous quoting state for checking later
# store the previous quoting state for checking later
was_inside_quotes
=
inside_quotes
was_inside_quotes
=
inside_quotes
quote_char
=
_get_quote_state
(
token
,
quote_char
)
quote_char
=
_get_quote_state
(
token
,
quote_char
)
...
...
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