Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 21, 2025
1 parent 08a7d86 commit d9e6608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def remove_aws_credential(endpoint=None, bucket=None, vault_url=VAULT_URL):
# clean up endpoint name:
endpoint = re.sub(r"\W", "_", endpoint)

status_code = delete_service_store_secret("candig-ingest", key=f"aws/{endpoint}/{bucket}")
response, status_code = delete_service_store_secret("candig-ingest", key=f"aws/{endpoint}/{bucket}")
if status_code == 200:
result = {}
result['endpoint'] = endpoint
Expand Down Expand Up @@ -659,7 +659,7 @@ def remove_program_from_opa(program_id):
return response, status_code
if status_code < 300:
# create or update the program itself
response = delete_service_store_secret("opa", key=f"programs/{program_id}")
response, status_code = delete_service_store_secret("opa", key=f"programs/{program_id}")

# update the values for the program list
response, status_code = get_service_store_secret("opa", key="programs")
Expand Down

0 comments on commit d9e6608

Please sign in to comment.