]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing in lib/cr_vmware_tpl/handler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 26 Aug 2020 10:24:11 +0000 (12:24 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 26 Aug 2020 10:24:11 +0000 (12:24 +0200)
lib/cr_vmware_tpl/handler.py

index 6ded21c0bfaf190d2a1f0e0e0200387839a6a42b..cd1bbf16627d9217d3410a8fcd2aa2723f4ad10c 100644 (file)
@@ -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: