Skip to content

Commit

Permalink
Fix polling spinner on windows (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
atbagga committed Jun 19, 2019
1 parent 768aff8 commit c696f8f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def get_kubernetes_namespace(organization, project, cluster, subscription_id, su

def poll_connection_ready(organization, project, connection_id):
import colorama
colorama.init()
import humanfriendly
import time
colorama.init()
with humanfriendly.Spinner(label="Checking resource readiness") as spinner:
se_client = get_service_endpoint_client(organization)
while True:
Expand All @@ -167,6 +167,7 @@ def poll_connection_ready(organization, project, connection_id):
service_endpoint = se_client.get_service_endpoint_details(project, connection_id)
if service_endpoint.is_ready:
break
colorama.deinit()


def get_se_kubernetes_namespace_request_obj(subscription_id, subscription_name, cluster_id, cluster_name, fqdn,
Expand Down

0 comments on commit c696f8f

Please sign in to comment.