mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
cloudstack: implement general api_region support, update docs
This commit is contained in:
parent
efa005c228
commit
3db4039ad1
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