From: Frank Brehm Date: Wed, 6 Nov 2019 15:34:28 +0000 (+0100) Subject: Applying flake8 rules to lib/cr_tf/config.py X-Git-Tag: 1.3.7~1^2~7 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=6538405bf3d63c4d1627534098b49f9e3ff687da;p=pixelpark%2Fcreate-terraform.git Applying flake8 rules to lib/cr_tf/config.py --- diff --git a/lib/cr_tf/config.py b/lib/cr_tf/config.py index dcd9d55..08be4dc 100644 --- a/lib/cr_tf/config.py +++ b/lib/cr_tf/config.py @@ -12,8 +12,6 @@ from __future__ import absolute_import import logging import re -from pathlib import Path - # Third party modules import pytz @@ -34,7 +32,7 @@ from .errors import CrTfConfigError from .xlate import XLATOR -__version__ = '1.3.5' +__version__ = '1.3.6' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -162,7 +160,7 @@ class VsphereConfig(FbBaseObject): if val < 1: msg = _("a port may not be less than 1: {}.").format(val) raise CrTfConfigError(msg) - max_val = (2**16) -1 + max_val = (2 ** 16) - 1 if val > max_val: msg = _("a port may not be greater than {m}: {v}.").format( m=max_val, v=val) @@ -678,7 +676,7 @@ class CrTfConfiguration(BaseConfiguration): res['vsphere'] = {} for vsphere_name in self.vsphere.keys(): res['vsphere'][vsphere_name] = self.vsphere[vsphere_name].as_dict( - short=short, show_secrets=show_secrets) + short=short, show_secrets=show_secrets) if self.pdns_api_key: if show_secrets or self.verbose > 4: