-
Notifications
You must be signed in to change notification settings - Fork 210
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
set_credential_file should search for auth endpoint #10
Comments
There is a way, but I have to agree that it's not obvious. I envisioned people being in one or the other auth regions, but not switching. I'll add the option to specify region when setting credentials. But in the meantime you can do:
|
OK, I've pushed this change to the working branch. You can now optionally specify the parameter |
Setting region to 'LON' in
~/.pyrax.cfg
will setpyrax.identity.auth_endpoint
correctly. However, I believe this should be something that can be parsed from the file inpyrax.set_credential_file()
. The auth endpoint seems like a natural fit with username and API key.Is there a better way that doesn't require a user-wide setting like
~/.pyrax.cfg
? The alternatives that I see don't feel as convenient aspyrax.set_credential_file()
.The text was updated successfully, but these errors were encountered: