From 6538405bf3d63c4d1627534098b49f9e3ff687da Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 6 Nov 2019 16:34:28 +0100 Subject: [PATCH] Applying flake8 rules to lib/cr_tf/config.py --- lib/cr_tf/config.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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: -- 2.39.5