Skip to content

Commit

Permalink
CRAYSAT-1980: fixed broken line
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanholen-hpe committed Feb 10, 2025
1 parent 3b2eb6a commit 7d55179
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ def delete_vcs_repository(cls, repo_name) -> str:
vcs_password = base64.b64decode(encoded_password).decode('utf-8')

# run a curl command with the username and password to delete the repo
url = f"https://crayvcs:{vcs_password}@api-gw-service-nmn.local/vcs/api/v1/admin/users/cray/{repo_name}"
url = f"https://crayvcs:{vcs_password}@api-gw-service-nmn.local/vcs/api/v1/repos/cray/{repo_name}"
# Define the data payload
headers = {
'accept': 'application/json',
}

response = requests.delete(url, headers)
response = requests.delete(url, headers=headers)

if response.status_code != 204:
cls.set_up_errors.append(f"Failed to delete the repository. Status code: {response.status_code}, Response: {response.text}")
Expand Down

0 comments on commit 7d55179

Please sign in to comment.