Skip to content

Commit

Permalink
update print stmts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bavneet Singh committed Aug 8, 2024
1 parent 6854c5a commit ff894ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/connectedk8s/azext_connectedk8s/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def create_connectedk8s(cmd, client, resource_group_name, cluster_name, correlat
for helm_parameter, helm_value in protected_helm_values.items():
helm_content_values[helm_parameter] = helm_value

print("Starting to install Azure arc agents on the Kubernetes cluster.")
print("Step: {}: Starting to install Azure arc agents on the Kubernetes cluster.".format(utils.get_utctimestring()))
# Install azure-arc agents
utils.helm_install_release(cmd.cli_ctx.cloud.endpoints.resource_manager, chart_path, kubernetes_distro,
kubernetes_infra, location, private_key_pem, kube_config, kube_context, no_wait,
Expand Down Expand Up @@ -576,8 +576,6 @@ def poll_for_agent_state(cmd, resource_group_name, cluster_name, timeout_minutes
return True
elapsed_time = time.time() - start_time
if elapsed_time >= timeout_minutes * 60:
print("Agent state has not reached terminal state within " + timeout_minutes + " minute timeout window: " +
connected_cluster.provisioning_state)
return False
time.sleep(interval)

Expand Down

0 comments on commit ff894ba

Please sign in to comment.