File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ def __init__(
62
62
)
63
63
if not new_access_token :
64
64
raise ManagementError (msg = 'No management token was configured.' )
65
+
65
66
self ._is_jwt = not access_token and new_access_token and is_jwt (new_access_token )
66
67
self ._sess = requests .Session ()
67
68
self ._sess .headers .update ({
@@ -70,10 +71,14 @@ def __init__(
70
71
'Accept' : 'application/json' ,
71
72
'User-Agent' : f'SingleStoreDB-Python/{ client_version } ' ,
72
73
})
74
+
73
75
self ._base_url = urljoin (
74
- base_url or type (self ).default_base_url ,
76
+ base_url
77
+ or config .get_option ('management.base_url' )
78
+ or type (self ).default_base_url ,
75
79
version or type (self ).default_version ,
76
80
) + '/'
81
+
77
82
self ._params : Dict [str , str ] = {}
78
83
if organization_id :
79
84
self ._params ['organizationID' ] = organization_id
You can’t perform that action at this time.
0 commit comments