Skip to content

Add healthcheck to create and run#617

Open
inknos wants to merge 1 commit intocontainers:mainfrom
inknos:healthcheck-create-run
Open

Add healthcheck to create and run#617
inknos wants to merge 1 commit intocontainers:mainfrom
inknos:healthcheck-create-run

Conversation

@inknos
Copy link
Contributor

@inknos inknos commented Jan 19, 2026

No description provided.

Signed-off-by: Nicola Sella <nsella@redhat.com>
Comment on lines +788 to +789
for command in health_commands_data:
if command in args:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified with the intersection of sets.

if conflicts := set(args) & set(health_commands_data):
        raise ValueError(f"Cannot set {conflicts.pop()} when no_healthcheck is True")

Also, it could be used in the else branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants