Skip to content

Commit

Permalink
Update infisical_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Jan 26, 2024
1 parent c84056c commit e47608e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/infisical-py/infisical_client/infisical_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ def listSecrets(self, options: ListSecretsOptions) -> List[SecretElement]:
secrets = ResponseForListSecretsResponse.from_dict(result).data.secrets

# Setting the env in Rust is not enough for Python apparently, so we have to do this as well.
for secret in secrets:
if(options.attach_to_process_env):
if options.attach_to_process_env:
for secret in secrets:
os.environ[secret.secret_key] = secret.secret_value

return secrets

def updateSecret(self, options: UpdateSecretOptions) -> SecretElement:
result = self._run_command(Command(update_secret=options))
Expand Down

0 comments on commit e47608e

Please sign in to comment.