Skip to content

Commit

Permalink
Fix #197 : devops url refactoring (#199)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Lottini <stefano.lottini@datastax.com>
  • Loading branch information
erichare and hemidactylus committed Feb 8, 2024
1 parent 42279ae commit becf3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astrapy/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DEFAULT_JSON_API_PATH = "/api/json"
DEFAULT_JSON_API_VERSION = "v1"

DEFAULT_DEV_OPS_URL = "api.astra.datastax.com"
DEFAULT_DEV_OPS_URL = "https://api.astra.datastax.com"
DEFAULT_DEV_OPS_API_VERSION = "v2"
DEFAULT_DEV_OPS_AUTH_HEADER = "Authorization"

Expand Down
2 changes: 1 addition & 1 deletion astrapy/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(
).strip("/")

self.token = "Bearer " + token
self.base_url = f"https://{dev_ops_url}/{dev_ops_api_version}"
self.base_url = f"{dev_ops_url}/{dev_ops_api_version}"

def __eq__(self, other: Any) -> bool:
if isinstance(other, AstraDBOps):
Expand Down

0 comments on commit becf3ff

Please sign in to comment.