from .config import CrTplConfiguration
+from .cobbler import CobblerError, Cobbler
+
from .xlate import XLATOR
-__version__ = '1.3.2'
+__version__ = '1.4.1'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
force=force, initialized=False,
)
+ if not isinstance(config, CrTplConfiguration):
+ msg = _("{w} is not an instance of {c}, but an instance of {i} instead.").format(
+ w='Parameter config', c='CrTplConfiguration', i=config.__class__.__name__)
+ raise HandlerError(msg)
+
self.config = config
self.service_instance = None
self.tpl_vm_folder = None
self.rotate_only = False
self.abort = False
self.postinstall_errors = None
+ self.cobbler = None
self.vsphere = VsphereServer(
appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
LOG.debug(_("Starting handling ..."))
+ return 0
+
self.vsphere.get_about()
self.vsphere.get_clusters()
self.cluster = self.vsphere.get_cluster_by_name(self.config.vsphere_cluster)