Skip to content

Commit

Permalink
modify in-process environment when replacing
Browse files Browse the repository at this point in the history
  • Loading branch information
wearpants committed Jan 2, 2020
1 parent 68a7ace commit bd84139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions berglas_python.py
Expand Up @@ -109,8 +109,7 @@ def Replace(project_id: str, env_var_key: str):

plaintext = Resolve(project_id, env_var_value)

os.environ.unsetenv(env_var_key)
os.environ.setdefault(env_var_key, plaintext)
os.environ[env_var_key] = plaintext


def _get_bucket_object(env_var_value: str) -> (str, str):
Expand Down

0 comments on commit bd84139

Please sign in to comment.