ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
298 stars 81 forks source link

Read custom file on runtime #29

Closed arnaudmorin closed 8 years ago

arnaudmorin commented 8 years ago

This patch provide a way to read custom config file that can be provided on runtime. E.G.: client = ovh.Client(config_file="ovh.custom.conf")

This is useful when you have to switch from multiple config file. At least, this is useful to me :p

Signed-off-by: Arnaud Morin arnaud.morin@corp.ovh.com

yadutaf commented 8 years ago

I really like this idea! Could you update the README to expose this feature? In particular, I'm wondering if the custom config file replaces the 3 previously loaded files or if it overloads them and hence can still be used to provide defaults

arnaudmorin commented 8 years ago

I'll do that

arnaudmorin commented 8 years ago

done

yadutaf commented 8 years ago

LGTM! I'll let you squash + sign. Then Go!

arnaudmorin commented 8 years ago

done