Fix flake8 minor issues 05/10305/1
authorDavid Garcia <david.garcia@canonical.com>
Fri, 12 Feb 2021 16:18:39 +0000 (17:18 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Fri, 12 Feb 2021 16:18:39 +0000 (17:18 +0100)
Change-Id: I1348e9807b8071a1cbf50b97144069a5b6709def
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/loggable.py
n2vc/tests/unit/test_k8s_helm3_conn.py

index d588a1d..b3b98da 100644 (file)
@@ -115,7 +115,7 @@ class Loggable:
         if not include_path:
             i = filename.rfind("/")
             if i > 0:
         if not include_path:
             i = filename.rfind("/")
             if i > 0:
-                filename = filename[i + 1 :]
+                filename = filename[i + 1:]
 
         # datetime
         dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
 
         # datetime
         dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
index b1b5a60..df3e1c3 100644 (file)
@@ -446,7 +446,7 @@ class TestK8sHelm3Conn(asynctest.TestCase):
             if args[0] == "k8sclusters":
                 return {
                     "_admin": {
             if args[0] == "k8sclusters":
                 return {
                     "_admin": {
-                        "helm_chart_repos" : [
+                        "helm_chart_repos": [
                             "4b5550a9-990d-4d95-8a48-1f4614d6ac9c"
                         ]
                     }
                             "4b5550a9-990d-4d95-8a48-1f4614d6ac9c"
                         ]
                     }