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
729f2e3b
Commit
729f2e3b
authored
Nov 20, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1637 from edx/feanil/aws_creds
Set empty aws credentials to None.
parents
df349b97
9dd18280
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
cms/envs/aws.py
+6
-1
lms/envs/aws.py
+6
-0
No files found.
cms/envs/aws.py
View file @
729f2e3b
...
...
@@ -166,9 +166,14 @@ SEGMENT_IO_KEY = AUTH_TOKENS.get('SEGMENT_IO_KEY')
if
SEGMENT_IO_KEY
:
MITX_FEATURES
[
'SEGMENT_IO'
]
=
ENV_TOKENS
.
get
(
'SEGMENT_IO'
,
False
)
AWS_ACCESS_KEY_ID
=
AUTH_TOKENS
[
"AWS_ACCESS_KEY_ID"
]
if
AWS_ACCESS_KEY_ID
==
""
:
AWS_ACCESS_KEY_ID
=
None
AWS_SECRET_ACCESS_KEY
=
AUTH_TOKENS
[
"AWS_SECRET_ACCESS_KEY"
]
if
AWS_SECRET_ACCESS_KEY
==
""
:
AWS_SECRET_ACCESS_KEY
=
None
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
MODULESTORE
=
AUTH_TOKENS
[
'MODULESTORE'
]
CONTENTSTORE
=
AUTH_TOKENS
[
'CONTENTSTORE'
]
...
...
lms/envs/aws.py
View file @
729f2e3b
...
...
@@ -250,7 +250,13 @@ CC_PROCESSOR = AUTH_TOKENS.get('CC_PROCESSOR', CC_PROCESSOR)
SECRET_KEY
=
AUTH_TOKENS
[
'SECRET_KEY'
]
AWS_ACCESS_KEY_ID
=
AUTH_TOKENS
[
"AWS_ACCESS_KEY_ID"
]
if
AWS_ACCESS_KEY_ID
==
""
:
AWS_ACCESS_KEY_ID
=
None
AWS_SECRET_ACCESS_KEY
=
AUTH_TOKENS
[
"AWS_SECRET_ACCESS_KEY"
]
if
AWS_SECRET_ACCESS_KEY
==
""
:
AWS_SECRET_ACCESS_KEY
=
None
AWS_STORAGE_BUCKET_NAME
=
AUTH_TOKENS
.
get
(
'AWS_STORAGE_BUCKET_NAME'
,
'edxuploads'
)
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
...
...
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