Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
a9ab395d
Commit
a9ab395d
authored
Feb 24, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use yaml.safe_load, since we have no need for the greater power of .load
parent
ca4729c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cms/envs/yaml_config.py
+2
-2
lms/envs/yaml_config.py
+2
-2
No files found.
cms/envs/yaml_config.py
View file @
a9ab395d
...
...
@@ -129,7 +129,7 @@ LOCAL_LOGLEVEL = 'INFO'
#
with
open
(
CONFIG_ROOT
/
CONFIG_PREFIX
+
"env.yaml"
)
as
env_file
:
ENV_TOKENS
=
yaml
.
load
(
env_file
)
ENV_TOKENS
=
yaml
.
safe_
load
(
env_file
)
ENV_TOKENS
=
convert_tokens
(
ENV_TOKENS
)
...
...
@@ -220,7 +220,7 @@ MICROSITE_ROOT_DIR = path(MICROSITE_ROOT_DIR)
#
with
open
(
CONFIG_ROOT
/
CONFIG_PREFIX
+
"auth.yaml"
)
as
auth_file
:
AUTH_TOKENS
=
yaml
.
load
(
auth_file
)
AUTH_TOKENS
=
yaml
.
safe_
load
(
auth_file
)
AUTH_TOKENS
=
convert_tokens
(
AUTH_TOKENS
)
...
...
lms/envs/yaml_config.py
View file @
a9ab395d
...
...
@@ -161,7 +161,7 @@ if os.environ.get('QUEUE') == 'high_mem':
#
with
open
(
CONFIG_ROOT
/
CONFIG_PREFIX
+
"env.yaml"
)
as
env_file
:
ENV_TOKENS
=
yaml
.
load
(
env_file
)
ENV_TOKENS
=
yaml
.
safe_
load
(
env_file
)
# Works around an Ansible bug
ENV_TOKENS
=
convert_tokens
(
ENV_TOKENS
)
...
...
@@ -266,7 +266,7 @@ STATIC_ROOT = path(STATIC_ROOT_BASE)
#
with
open
(
CONFIG_ROOT
/
CONFIG_PREFIX
+
"auth.yaml"
)
as
auth_file
:
AUTH_TOKENS
=
yaml
.
load
(
auth_file
)
AUTH_TOKENS
=
yaml
.
safe_
load
(
auth_file
)
# Works around an Ansible bug
AUTH_TOKENS
=
convert_tokens
(
AUTH_TOKENS
)
...
...
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