mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 06:21:43 -07:00
fix default host for non vcd service types
This commit is contained in:
parent
bd9582d072
commit
a6a58d6947
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ class VcaAnsibleModule(AnsibleModule):
|
||||||
|
|
||||||
def create_instance(self):
|
def create_instance(self):
|
||||||
service_type = self.params.get('service_type', DEFAULT_SERVICE_TYPE)
|
service_type = self.params.get('service_type', DEFAULT_SERVICE_TYPE)
|
||||||
host = self.params.get('host', LOGIN_HOST.get('service_type'))
|
if service_type == 'vcd':
|
||||||
|
host = self.params['host']
|
||||||
|
else:
|
||||||
|
host = LOGIN_HOST[service_type]
|
||||||
username = self.params['username']
|
username = self.params['username']
|
||||||
|
|
||||||
version = self.params.get('api_version')
|
version = self.params.get('api_version')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue