Skip to content

Commit

Permalink
Fix method invalid results typing
Browse files Browse the repository at this point in the history
  • Loading branch information
iLeonidze committed Nov 24, 2021
1 parent ccdd3e4 commit a52d8e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubetool/etcd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io
import json
import time
from typing import List, Dict

import fabric.connection

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a52d8e3

Please sign in to comment.