diff --git a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py index 0afc17a9..6e640896 100644 --- a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py +++ b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py @@ -182,7 +182,7 @@ class ApiClient: # specified safe chars, encode everything resource_path = resource_path.replace( '{%s}' % k, - quote(str(v), safe='' + quote(str(v), safe='') ) # post parameters diff --git a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/configuration.py b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/configuration.py index 96aff8fa..637b9b81 100644 --- a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/configuration.py +++ b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/configuration.py @@ -232,6 +232,11 @@ class Configuration: } ] + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables={}) + @host.setter def host(self, value): """Fix base path."""