mirror of https://github.com/ansible/ansible.git
Fix import of gce/gcdns without a libcloud module
The module level function defs for gcdns_connect() and gce_connect() provide a default arg for 'provider' that references into the libcloud module. If the libcloud modules were not installed, the gce/gcdns python modules would throw ImportError. Let the provider arg default to None and if not provided, set it to the default libcloud.compute.types.Provider.* value if the modules are installed.pull/16879/head
parent
409d95d67e
commit
fa1d55f683
Loading…
Reference in New Issue