change cluster creation log message (#14672)

Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
This commit is contained in:
Raphael Randschau 2022-09-21 07:01:08 -07:00 committed by GitHub
parent 5dc370f456
commit a3c8671304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import json
import re
import time
from datetime import datetime
from textwrap import dedent
from typing import Any, List
import click
@ -136,7 +137,19 @@ class AWSClusterManager:
if wait:
_wait_for_cluster_state(self.api_client, resp.id, V1ClusterState.RUNNING)
click.echo(f"{resp.id} cluster is in {resp.status.phase} state")
click.echo(
dedent(
f"""\
{resp.id} is now being created... This can take up to an hour.
To view the status of your clusters use:
`lightning list clusters`
To view cluster logs use:
`lightning show cluster logs {resp.id}`
"""
)
)
def get_clusters(self) -> ClusterList:
resp = self.api_client.cluster_service_list_clusters(phase_not_in=[V1ClusterState.DELETED])