mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 20:50:23 -07:00
Merge pull request #12083 from resmo/for-ansible
cloudstack: implement general api_region support, update docs
This commit is contained in:
commit
2043fcd5db
2 changed files with 12 additions and 4 deletions
|
@ -94,7 +94,8 @@ class AnsibleCloudStack(object):
|
|||
method=api_http_method
|
||||
)
|
||||
else:
|
||||
self.cs = CloudStack(**read_config())
|
||||
api_region = self.module.params.get('api_region', 'cloudstack')
|
||||
self.cs = CloudStack(**read_config(api_region))
|
||||
|
||||
|
||||
def get_or_fallback(self, key=None, fallback_key=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue