nexusagent-redis commited on
Commit
0d0758b
·
1 Parent(s): 51e3de0

Import missing os library in entrypoint.sh python inline script

Browse files
Files changed (1) hide show
  1. entrypoint.sh +1 -1
entrypoint.sh CHANGED
@@ -77,7 +77,7 @@ if [ -n "$NANCY_REDIS_SECRET" ]; then
77
  # Webdis supports "http_basic_auth": ["user:password"] at root level.
78
  # Let's dynamically patch webdis.json to inject the credentials!
79
  python3 -c "
80
- import json
81
  with open('/app/webdis.json', 'r') as f:
82
  data = json.load(f)
83
  data['http_basic_auth'] = [f'nancy_admin:{os.getenv(\"NANCY_REDIS_SECRET\")}']
 
77
  # Webdis supports "http_basic_auth": ["user:password"] at root level.
78
  # Let's dynamically patch webdis.json to inject the credentials!
79
  python3 -c "
80
+ import os, json
81
  with open('/app/webdis.json', 'r') as f:
82
  data = json.load(f)
83
  data['http_basic_auth'] = [f'nancy_admin:{os.getenv(\"NANCY_REDIS_SECRET\")}']