From be2a8a21e4b61a3f4762d53bad52772a2f60fb7d Mon Sep 17 00:00:00 2001
From: Varac <varac@varac.net>
Date: Mon, 21 Feb 2022 17:19:08 +0100
Subject: [PATCH] Rename apiclient to api_client_instance

---
 install/generate_secrets.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/install/generate_secrets.py b/install/generate_secrets.py
index 1909cf171..ace28adef 100644
--- a/install/generate_secrets.py
+++ b/install/generate_secrets.py
@@ -171,21 +171,22 @@ def get_kubernetes_secret_data(secret_name, namespace):
 
 def store_kubernetes_secret(secret_dict, namespace, update=False):
     """Stores either a new secret in the cluster, or updates an existing one."""
-    apiclient = api_client.ApiClient()
+    api_client_instance = api_client.ApiClient()
     if update:
         verb = "updated"
         api_response = patch_kubernetes_secret(secret_dict, namespace)
     else:
         verb = "created"
         api_response = create_from_yaml(
-            apiclient, yaml_objects=[secret_dict], namespace=namespace
+            api_client_instance, yaml_objects=[
+                secret_dict], namespace=namespace
         )
     print(f"Secret {verb} with api response: {api_response}")
 
 
 def patch_kubernetes_secret(secret_dict, namespace):
     """Patches secret in the cluster with new data."""
-    apiclient = api_client.ApiClient()
+    api_client_instance = api_client.ApiClient()
     api_instance = client.CoreV1Api(apiclient)
     name = secret_dict["metadata"]["name"]
     body = {}
-- 
GitLab