# Own modules
from fb_tools.config import ConfigError, BaseConfiguration
-__version__ = '0.6.1'
+__version__ = '0.6.2'
LOG = logging.getLogger(__name__)
default_vsphere_host = 'vcs01.ppbrln.internal'
default_vsphere_port = 443
default_vsphere_user = 'root'
+ default_vsphere_cluster = 'vmcc-l105-01'
default_dc = 'vmcc'
default_folder = 'templates'
default_template_vm = 'template.pixelpark.com'
self.vsphere_host = self.default_vsphere_host
self.vsphere_port = self.default_vsphere_port
self.vsphere_user = self.default_vsphere_user
+ self.vsphere_cluster = self.default_vsphere_cluster
self.dc = self.default_dc
self.password = None
self.folder = self.default_folder
res['default_vsphere_host'] = self.default_vsphere_host
res['default_vsphere_port'] = self.default_vsphere_port
res['default_vsphere_user'] = self.default_vsphere_user
+ res['default_vsphere_cluster'] = self.default_vsphere_cluster
res['default_dc'] = self.default_dc
res['default_folder'] = self.default_folder
res['default_template_vm'] = self.default_template_vm
elif key.lower() == 'password':
self.password = value
continue
+ elif key.lower() == 'cluster':
+ self.vsphere_cluster = value
+ continue
elif key.lower() == 'folder':
self.folder = value
elif key.lower() == 'dc':