Skip to content

Commit f0c52b8

Browse files
committed
Satisfy flake8
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent a390a6a commit f0c52b8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Tests/kaas/plugin/gardener_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def get_shoot_status(co_api: CustomObjectsApi, namespace: str, name: str):
6565
name=name,
6666
)
6767

68+
6869
# def get_secret_data(core_api: CoreV1Api, namespace: str, name: str):
6970
# secret = core_api.read_namespaced_secret(name, namespace)
7071
# return base64.b64decode(secret.data['kubeconfig'])

Tests/kaas/plugin/plugin_gardener.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_kubeconfig(self, core_api: _gh.CoreV1Api):
9898
return _gh.get_secret_data(core_api, self.namespace, self.secret_name)
9999

100100
def wait_for_shoot_ready(self, co_api: _gh.CustomObjectsApi):
101-
last_op = self._get_last_operation(co_api)
101+
last_op = self._get_last_operation(co_api)
102102
while last_op is not None and last_op.get('state') != 'Succeeded':
103103
state = last_op.get('state', 'Unknown')
104104
progress = last_op.get('progress', 0)
@@ -172,7 +172,7 @@ def create_cluster(self):
172172
sops = _ShootOps(self.namespace, self.config['name'])
173173
sops.create(co_api=co_api, shoot_dict=shoot_dict)
174174
sops.wait_for_shoot_ready(co_api)
175-
self._write_kubeconfig(cops.get_kubeconfig(core_api))
175+
self._write_kubeconfig(sops.get_kubeconfig(core_api))
176176

177177
def delete_cluster(self):
178178
with ApiClient(self.client_config) as api_client:

0 commit comments

Comments
 (0)