Browse Source

Don't override embedded secrets in config

add-file-preservation 1.1.2
Drew Short 4 years ago
parent
commit
1ccab73b65
  1. 4
      .gitignore
  2. 4
      acm.py

4
.gitignore

@ -1,4 +1,6 @@
.idea/
venv/
l_venv/
acm-config.json
acm-config.json

4
acm.py

@ -221,10 +221,6 @@ def load_config(path: str) -> any:
with open(path, 'r') as config_file:
config = json.load(config_file)
# Setup S3 Settings
config['s3']['access'] = os.getenv('ACM_S3_ACCESS')
config['s3']['secret'] = os.getenv('ACM_S3_SECRET')
# Setup concurrency
if 'concurrency' in config:
config['concurrency'] = abs(int(config['concurrency']))

Loading…
Cancel
Save