Merge pull request #13509 from chrrrles/vca_default_host

fix default host for non vcd service types
This commit is contained in:
Chrrrles Paul 2015-12-11 10:17:55 -05:00
commit e56efa49c4

View file

@ -108,7 +108,10 @@ class VcaAnsibleModule(AnsibleModule):
def create_instance(self):
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']
version = self.params.get('api_version')