Fix flake8 minor issues 17/10317/2
authorDavid Garcia <david.garcia@canonical.com>
Fri, 12 Feb 2021 16:18:39 +0000 (17:18 +0100)
committergarciadav <david.garcia@canonical.com>
Tue, 2 Mar 2021 11:23:53 +0000 (12:23 +0100)
Change-Id: I1348e9807b8071a1cbf50b97144069a5b6709def
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit 5ab1064304b993ea6364b5d932c5c0cb7434cfb7)

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:
-                filename = filename[i + 1 :]
+                filename = filename[i + 1:]
 
         # datetime
         dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")
index 0403004..3b81323 100644 (file)
@@ -445,7 +445,7 @@ class TestK8sHelm3Conn(asynctest.TestCase):
             if args[0] == "k8sclusters":
                 return {
                     "_admin": {
-                        "helm_chart_repos" : [
+                        "helm_chart_repos": [
                             "4b5550a9-990d-4d95-8a48-1f4614d6ac9c"
                         ]
                     }