From a52d8e3501aa807d9f10643e98eda13022c5529b Mon Sep 17 00:00:00 2001 From: Leonid Fedotov <3584432+iLeonidze@users.noreply.github.com> Date: Wed, 24 Nov 2021 15:43:02 +0300 Subject: [PATCH] Fix method invalid results typing --- kubetool/etcd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kubetool/etcd.py b/kubetool/etcd.py index d4d31ce69..fc52f98dd 100644 --- a/kubetool/etcd.py +++ b/kubetool/etcd.py @@ -1,6 +1,7 @@ import io import json import time +from typing import List, Dict import fabric.connection @@ -42,7 +43,7 @@ def remove_members(group: NodeGroup): log.verbose(f"Skipping {node_name} as it is not among etcd members.") -def wait_for_health(cluster: KubernetesCluster, connection: fabric.connection.Connection) -> list[dict]: +def wait_for_health(cluster: KubernetesCluster, connection: fabric.connection.Connection) -> List[Dict]: """ The method checks etcd endpoints health until all endpoints are healthy or retries are exhausted if all member are healthy the method checks the leader.