from .obj import PpBaseObject
-__version__ = '0.2.3'
+__version__ = '0.3.1'
LOG = logging.getLogger(__name__)
default_vsphere_host = 'vcs01.ppbrln.internal'
default_vsphere_port = 443
default_vsphere_user = 'root'
+ default_dc = 'vmcc'
default_folder = 'templates'
default_template_vm = 'template.pixelpark.com'
default_template_name = 'oracle-linux-7.4-template'
self.vsphere_host = self.default_vsphere_host
self.vsphere_port = self.default_vsphere_port
self.vsphere_user = self.default_vsphere_user
+ self.dc = self.default_dc
self.password = None
self.folder = self.default_folder
self.template_vm = self.default_template_vm
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_dc'] = self.default_dc
res['default_folder'] = self.default_folder
res['default_template_vm'] = self.default_template_vm
res['default_template_name'] = self.default_template_name
continue
if key.lower() == 'folder':
self.folder = value
+ if key.lower() == 'dc':
+ self.dc = value
continue