Skip to content

Commit ceb9155

Browse files
committed
bugfixes
1 parent e6768ad commit ceb9155

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

ads/opctl/backend/marketplace/marketplace_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _export_helm_chart_(listing_details: HelmMarketplaceListingDetails):
129129
wait_callback=lambda times_checked, _: print_ticker(
130130
"Waiting for marketplace export to finish", iteration=times_checked - 1
131131
),
132+
max_interval_seconds=1,
132133
).data
133134
if export_listing_work_request.status == "FAILED":
134135
print(f"Couldn't export images from marketplace to OCIR {StatusIcons.CROSS}")

ads/opctl/backend/marketplace/prerequisite_checker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ def _check_kubernetes_secret_(listing_details: HelmMarketplaceListingDetails):
7777
import kubernetes
7878

7979
print(
80-
f"Starting docker registry secret verification for secret: {get_highlighted_text(listing_details.docker_registry_secret)} in namespace: {get_highlighted_text(listing_details.namespace)}",
81-
end="\r",
80+
f"Starting docker registry secret verification for secret: {get_highlighted_text(listing_details.docker_registry_secret)} in namespace: {get_highlighted_text(listing_details.namespace)}"
8281
)
8382
create_secret = True
8483
kubernetes.config.load_kube_config()

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ def apply_stack(stack_id: str):
314314
waiter_kwargs={
315315
"wait_callback": lambda times_checked, _: print_ticker(
316316
"Waiting for stack to apply", iteration=times_checked - 1
317-
)
317+
),
318+
"max_interval_seconds": 1,
318319
},
319320
)
320321
).data
@@ -326,7 +327,7 @@ def apply_stack(stack_id: str):
326327

327328

328329
def prompt_security_rules(stack_id: str):
329-
if not click.prompt(
330+
if not click.confirm(
330331
"Do you want to attach required security rules to subnets automatically?",
331332
default=True,
332333
):
@@ -362,6 +363,9 @@ def add_security_list_to_subnet(sec_list_id: str, subnet_id: str):
362363
oci.core.VirtualNetworkClient
363364
)
364365
subnet: oci.core.models.Subnet = network_client.get_subnet(subnet_id=subnet_id).data
366+
print(
367+
f"Adding security list ({sec_list_id}) to subnet: '{subnet.display_name}'({subnet.id})"
368+
)
365369
if sec_list_id not in subnet.security_list_ids:
366370
update_subnet_details = oci.core.models.UpdateSubnetDetails()
367371
subnet.security_list_ids.append(sec_list_id)

0 commit comments

Comments
 (0)