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
5b0b1f8d
Commit
5b0b1f8d
authored
Jul 06, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unquote strings in the ansible config file
parent
f44f9569
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/ansible/constants.py
+6
-2
No files found.
lib/ansible/constants.py
View file @
5b0b1f8d
...
...
@@ -22,10 +22,12 @@ __metaclass__ = type
import
os
import
pwd
import
sys
from
string
import
ascii_letters
,
digits
from
six
import
string_types
from
six.moves
import
configparser
from
string
import
ascii_letters
,
digits
from
ansible.parsing.splitter
import
unquote
from
ansible.errors
import
AnsibleOptionsError
# copied from utils, avoid circular reference fun :)
...
...
@@ -49,8 +51,10 @@ def get_config(p, section, key, env_var, default, boolean=False, integer=False,
elif
floating
:
value
=
float
(
value
)
elif
islist
:
if
isinstance
(
value
,
basestring
):
if
isinstance
(
value
,
string_types
):
value
=
[
x
.
strip
()
for
x
in
value
.
split
(
','
)]
elif
isinstance
(
value
,
string_types
):
value
=
unquote
(
value
)
return
value
def
_get_config
(
p
,
section
,
key
,
env_var
,
default
):
...
...
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