Skip to content

Commit f624981

Browse files
committed
disable showing choices
1 parent f4b4929 commit f624981

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ads/opctl/operator/lowcode/feature_store_marketplace/operator_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def detect_or_create_stack(apigw_config: APIGatewayConfig):
183183
stack_provision_method = click.prompt(
184184
f"Select stack provisioning method:\n1.Create new stack\n2.Existing stack\n",
185185
type=click.Choice(list(choices.keys())),
186+
show_choices=False,
186187
)
187188
if choices[stack_provision_method] == "new":
188189
return _create_new_stack(apigw_config)
@@ -256,7 +257,7 @@ def get_nlb_id_from_service(service: "V1Service", apigw_config: APIGatewayConfig
256257
private_ips = list(filter(lambda obj: obj.resource_type == "PrivateIp", resources))
257258
if len(private_ips) != 1:
258259
return click.prompt(
259-
f"Please enter ID of load balancer associated with ip: {lb_ingress.ip}"
260+
f"Please enter OCID of load balancer associated with ip: {lb_ingress.ip}"
260261
)
261262
else:
262263
nlb_private_ip = private_ips[0]
@@ -271,7 +272,7 @@ def get_nlb_id_from_service(service: "V1Service", apigw_config: APIGatewayConfig
271272
).data.items
272273
if len(nlbs) != 1:
273274
return click.prompt(
274-
f"Please enter ID of load balancer associated with ip: {lb_ingress.ip}"
275+
f"Please enter OCID of load balancer associated with ip: {lb_ingress.ip}"
275276
)
276277
else:
277278
return nlbs[0].id

0 commit comments

Comments
 (0)