change cluster creation log message (#14672)
Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
This commit is contained in:
parent
5dc370f456
commit
a3c8671304
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue