]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Applying flake8 rules to lib/cr_tf/config.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 15:34:28 +0000 (16:34 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 15:34:28 +0000 (16:34 +0100)
lib/cr_tf/config.py

index dcd9d5540daea976d309ed0868ed7ba0f948ca53..08be4dc6e425877c68cf859271b1d96f701698ba 100644 (file)
@@ -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: