style(scripts): rename ingress variable

This commit is contained in:
Khue Doan 2022-03-14 02:51:03 +07:00
parent 958423c332
commit cc81d4786c

View File

@ -32,15 +32,14 @@ def wait_app(name: str, fullname: str, namespace: str) -> None:
success = False
with console.status(f"Waiting for {fullname}"):
while not success:
try:
i = client.NetworkingV1Api().read_namespaced_ingress(
ingress = client.NetworkingV1Api().read_namespaced_ingress(
name,
namespace
)
host = i.spec.rules[0].host
host = ingress.spec.rules[0].host
requests.get(f"https://{host}", verify=False)
console.log(f"{fullname} is ready, visit https://{host}")
success = True