From: Frank Brehm Date: Wed, 26 Aug 2020 10:24:11 +0000 (+0200) Subject: Bugfixing in lib/cr_vmware_tpl/handler.py X-Git-Tag: 2.2.1~1^2~1^2~6 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=a888e01e4f2c19dcb5cafe3edea5526de7dc8869;p=pixelpark%2Fcreate-vmware-tpl.git Bugfixing in lib/cr_vmware_tpl/handler.py --- diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index 6ded21c..cd1bbf1 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -29,11 +29,11 @@ from pyVmomi import vim from fb_tools.common import pp, to_str from fb_tools.errors import HandlerError, ExpectedHandlerError -from fb_tools.errors import VSphereDatacenterNotFoundError from fb_tools.handler import BaseHandler from fb_tools.vsphere.errors import VSphereExpectedError +from fb_tools.vsphere.errors import VSphereDatacenterNotFoundError from fb_tools.vsphere.server import VsphereServer from fb_tools.vsphere.iface import VsphereVmInterface from fb_tools.vsphere.ds import VsphereDatastore @@ -44,7 +44,7 @@ from .cobbler import Cobbler from .xlate import XLATOR -__version__ = '1.8.1' +__version__ = '1.8.2' LOG = logging.getLogger(__name__) TZ = pytz.timezone('Europe/Berlin') @@ -489,7 +489,7 @@ class CrTplHandler(BaseHandler): # ------------------------------------------------------------------------- def _get_storage_pod_obj_rec(self, child, used_c_name, depth=1): -A if hasattr(child, 'childEntity'): + if hasattr(child, 'childEntity'): if depth > self.vsphere.max_search_depth: return None for sub_child in child.childEntity: