-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ovh: allow to use ovh.conf file #2216
Conversation
9a7a313
to
2d71e22
Compare
Hello, Thanks for the patch. I suggested another way around here: ldez#2 What do you think ? Romain |
I'm a little confused: Where does it read the |
The read of the file is inside the constructors of the client. https://github.com/ovh/go-ovh/blob/9c5297024e0b551f222c66504a3ffdf7b0cd479b/ovh/ovh.go#L103-L159 My PR was to be able to fill all the fields and then call It's not my preferred solution but it works as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not my preferred solution but it works as expected.
I concur. It works now as expected, but as soon as OVH changes their client implementation (as likely or unlikely this may be) and the behaviour diverges, we have a problem.
I much prefer ovh/go-ovh#84 (or something similar) to become available, but alas, this seems to be the next best thing...
Signed-off-by: Romain Beuque <556072+rbeuque74@users.noreply.github.com>
Fixes #2215