Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
Signed-off-by: lstocchi <lstocchi@redhat.com>
  • Loading branch information
lstocchi authored and benoitf committed Jan 23, 2024
1 parent ae9f2cf commit 6ec8d2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/main/src/plugin/container-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@ export class ContainerProviderRegistry {
];
}

/**
* it finds a running podman provider by fetching all internalProviders.
* It filters by checking the libpodApi
* @returns a running podman provider
* @throws if no running podman provider is found
*/
public getFirstRunningPodmanContainerProvider(): InternalContainerProvider {
// grab the first running podman provider
const matchingPodmanContainerProvider = Array.from(this.internalProviders.values()).find(
Expand Down

0 comments on commit 6ec8d2a

Please sign in to comment.