]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Fixing lib/cr_vmware_tpl/handler/vm.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 20 Nov 2023 10:05:57 +0000 (11:05 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 20 Nov 2023 10:05:57 +0000 (11:05 +0100)
lib/cr_vmware_tpl/config/eval.py
lib/cr_vmware_tpl/handler/vm.py

index 4fc7e267b02a341cd240f9b3e25d56bed01472ca..981251975da1c1d60c60836a3380c485d3f35066 100644 (file)
@@ -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))
index 465509b74567472c330f561a63f3f869103e8f31..4201b4d6d271809a3d76fb0c2108cec12ee2659b 100644 (file)
@@ -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__)