fix(appctl): do not overwrite non-empty env vars with empty strings from app.yaml
This commit is contained in:
1 parent
2470d43693
commit
c7a50cc7e9
1 file changed
+1
@@ -77,6 +77,7 @@ import json, sys
|
|||||||
d = json.loads(sys.argv[1])
|
d = json.loads(sys.argv[1])
|
||||||
env_dict = d.get('env', {})
|
env_dict = d.get('env', {})
|
||||||
for k, v in env_dict.items():
|
for k, v in env_dict.items():
|
||||||
|
if v != '' and v is not None:
|
||||||
print(f'export {k}=\"{v}\"')
|
print(f'export {k}=\"{v}\"')
|
||||||
" "$resolved_json")"
|
" "$resolved_json")"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user