Skip to content

Commit

Permalink
fix: fixed the target proxy Apigee type
Browse files Browse the repository at this point in the history
  • Loading branch information
payaljindal committed Jan 17, 2024
1 parent 75ad51c commit 3b0dcc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/target-server-validator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main():
)

TargetApigee = Apigee(
"x" if "apigee.googleapis.com" in cfg["source"]["baseurl"] else "opdk",
"x" if "apigee.googleapis.com" in cfg["target"]["baseurl"] else "opdk",
cfg["target"]["baseurl"],
cfg["target"]["auth_type"],
cfg["target"]["org"],
Expand Down
4 changes: 2 additions & 2 deletions tools/target-server-validator/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def run_validator_proxy(
if response.status_code == 200:
return response.json()
else:
return {"error": f"An error occurred: {response.json().get('error','')}"} # noqa
return {"error": f"{response.json().get('error','')}"} # noqa
except Exception as e:
return {"error": f"An error occurred: {e}"}
return {"error": f"{e}"}


def delete_file(file_name):
Expand Down

0 comments on commit 3b0dcc5

Please sign in to comment.