Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Lazy entry #822
Introduce a convenience method to the libcloud module for getting drivers
I find the current mechanism for fetching drivers a little cumbersome, 2 namespaces to import. After using the
This code allows for this example:
import libcloud cls = libcloud.get_driver(libcloud.DriverType.COMPUTE, libcloud.DriverType.COMPUTE.RACKSPACE)
Checklist (tick everything that applies)
Observation from an outsider...
If you're defining a provider class as
Just a thought, either way seems much cleaner than the current method.
@JamieCressey that would be better using the Enum base type in Python 3.4+ but once it has been called, its already been converted into the value (string), and there's no difference in values between