From dd0ee2aec6e9eae25e44c8aaa8965eb320a9dc71 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 2 Nov 2018 16:26:31 +0100 Subject: [PATCH] Applying flake8 rules to lib/cr_vmware_tpl/handler.py --- lib/cr_vmware_tpl/handler.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index ffd2ec2..152d7e1 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -11,7 +11,6 @@ from __future__ import absolute_import, print_function # Standard module import os import logging -import ssl import re import random import time @@ -24,28 +23,20 @@ import signal import pytz import paramiko -from pyVmomi import vim, vmodl - -from pyVim.connect import SmartConnect, Disconnect - # Own modules from fb_tools.common import pp, to_str -from fb_tools.errors import HandlerError, ExpectedHandlerError, CommandNotFoundError -from fb_tools.errors import TerraformVmError, TerraformVmDefinitionError, NetworkNotExistingError -from fb_tools.errors import CannotConnectVsphereError, NoDatastoreFoundError -from fb_tools.errors import InterruptError +from fb_tools.errors import HandlerError, ExpectedHandlerError from fb_tools.handler import BaseHandler -from fb_tools.vsphere import BaseVsphereHandler from fb_tools.vsphere.server import VsphereServer from fb_tools.vsphere.iface import VsphereVmInterface from .config import CrTplConfiguration -__version__ = '0.10.11' +__version__ = '0.10.12' LOG = logging.getLogger(__name__) TZ = pytz.timezone('Europe/Berlin') @@ -827,8 +818,8 @@ class CrTplHandler(BaseHandler): vm.MarkAsTemplate() LOG.debug("Object {!r} is now a VMWare template.".format(self.config.template_name)) -# ============================================================================= +# ============================================================================= if __name__ == "__main__": pass -- 2.39.5