Skip to content

Commit

Permalink
Fix #197 : devops url refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
erichare committed Feb 7, 2024
1 parent 619b279 commit 5fc898f
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 @@ -46,7 +46,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 _ops_request(
self,
Expand Down

0 comments on commit 5fc898f

Please sign in to comment.