Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client.api_url returns wrong value #174

Closed
karibou opened this issue May 10, 2023 · 0 comments · Fixed by #175
Closed

Client.api_url returns wrong value #174

karibou opened this issue May 10, 2023 · 0 comments · Fixed by #175
Assignees
Labels
bug Something isn't working priority:highest Bugs filled by customers, security issues

Comments

@karibou
Copy link

karibou commented May 10, 2023

When using Client.from_config_file_and_env(profile_name='my_very_own_profile')
where the profile has api_url different from the default in the config.yaml file, it still picks up the default URL even if this one is not defined in the config.yaml file and not the api_url as stated in the profile.

Here is an example :
using following profile :

profiles: 
  my_very_own_profile:
    access_key: ...
    api_url: htp://this.is.a.very.bad.url

Doing :

from scaleway import Client
from scaleway.instance.v1.api import InstanceV1API
client = Client.from_config_file_and_env(profile_name='my_very_own_profile')
client.api_url
'https://api.scaleway.com'
@remyleone remyleone added bug Something isn't working priority:highest Bugs filled by customers, security issues labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:highest Bugs filled by customers, security issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants