vcenter provider: set default values
Set default value for the following optional parameters: - vcenter_port - vmware_proxy_host - vmware_proxy_port This way we won't get an error if they are not define in the configuration file.
This commit is contained in:
parent
756cdebd37
commit
e28bc46353
1 changed files with 4 additions and 1 deletions
|
@ -211,7 +211,10 @@ class VcenterProvider(CloudProvider):
|
||||||
provider='vmware')
|
provider='vmware')
|
||||||
|
|
||||||
def _setup_static(self):
|
def _setup_static(self):
|
||||||
parser = ConfigParser()
|
parser = ConfigParser({
|
||||||
|
'vcenter_port': '443',
|
||||||
|
'vmware_proxy_host': None,
|
||||||
|
'vmware_proxy_port': None})
|
||||||
parser.read(self.config_static_path)
|
parser.read(self.config_static_path)
|
||||||
|
|
||||||
self.endpoint = parser.get('DEFAULT', 'vcenter_hostname')
|
self.endpoint = parser.get('DEFAULT', 'vcenter_hostname')
|
||||||
|
|
Loading…
Add table
Reference in a new issue