MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_provisioning_progress_event

Function is_provisioning_progress_event

crates/openshell-cli/src/run.rs:478–502  ·  view source on GitHub ↗
(event: &PlatformEvent)

Source from the content-addressed store, hash-verified

476}
477
478fn is_provisioning_progress_event(event: &PlatformEvent) -> bool {
479 if event.metadata.contains_key(PROGRESS_COMPLETE_STEP_KEY)
480 || event.metadata.contains_key(PROGRESS_ACTIVE_STEP_KEY)
481 || event.metadata.contains_key(PROGRESS_ACTIVE_DETAIL_KEY)
482 {
483 return true;
484 }
485
486 event.source == "vm"
487 && matches!(
488 event.reason.as_str(),
489 "PullingLayer"
490 | "ResolvingImage"
491 | "AuthenticatingRegistry"
492 | "FetchingManifest"
493 | "CacheHit"
494 | "CacheMiss"
495 | "WaitingForImageCacheLock"
496 | "ExportingRootfs"
497 | "PreparingRootfs"
498 | "CreatingRootDisk"
499 | "PreparingOverlay"
500 | "Started"
501 )
502}
503
504fn print_sandbox_header(sandbox: &Sandbox, display: Option<&ProvisioningDisplay>) {
505 let lines = [

Callers 1

sandbox_createFunction · 0.85

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected