From: Frank Brehm Date: Mon, 20 Nov 2023 10:05:57 +0000 (+0100) Subject: Fixing lib/cr_vmware_tpl/handler/vm.py X-Git-Tag: 3.2.1~5^2~4 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=fd1e7a747898c6892aaf4fa4a3b71028a9201cd3;p=pixelpark%2Fcreate-vmware-tpl.git Fixing lib/cr_vmware_tpl/handler/vm.py --- diff --git a/lib/cr_vmware_tpl/config/eval.py b/lib/cr_vmware_tpl/config/eval.py index 4fc7e26..9812519 100644 --- a/lib/cr_vmware_tpl/config/eval.py +++ b/lib/cr_vmware_tpl/config/eval.py @@ -24,7 +24,7 @@ from ..xlate import XLATOR from .ldap import LdapConnectionInfo -__version__ = '0.2.0' +__version__ = '0.2.1' LOG = logging.getLogger(__name__) @@ -180,7 +180,7 @@ class ConfigEval(): return # ------------------------------------------------------------------------- - def _eval_config_template(self, section_name, section): + def _eval_config_template(self, section_name, section): # noqa: C901 if self.verbose > 1: LOG.debug(_("Checking config section {!r} ...").format(section_name)) diff --git a/lib/cr_vmware_tpl/handler/vm.py b/lib/cr_vmware_tpl/handler/vm.py index 465509b..4201b4d 100644 --- a/lib/cr_vmware_tpl/handler/vm.py +++ b/lib/cr_vmware_tpl/handler/vm.py @@ -19,6 +19,7 @@ from pathlib import Path # Third party modules import paramiko +from paramiko.ssh_exception import SSHException from fb_tools.common import pp, to_str from fb_tools.errors import HandlerError, ExpectedHandlerError @@ -26,9 +27,10 @@ from fb_tools.errors import HandlerError, ExpectedHandlerError # Own modules from .. import print_section_start, print_section_end +from ..errors import ExpectedCobblerError from ..xlate import XLATOR -__version__ = '0.2.8' +__version__ = '0.2.9' LOG = logging.getLogger(__name__)