Skip to content

Set choices for flavor, so users can't select a wrong one#559

Merged
ehelms merged 1 commit into
masterfrom
validate-flavor
Jun 11, 2026
Merged

Set choices for flavor, so users can't select a wrong one#559
ehelms merged 1 commit into
masterfrom
validate-flavor

Conversation

@evgeni

@evgeni evgeni commented Jun 11, 2026

Copy link
Copy Markdown
Member

Why are you introducing these changes? (Problem description, related links)

https://community.theforeman.org/t/foremanctl-features-was-working-then-broke-after-deployment/46769/3

What are the changes introduced in this pull request?

  • Limit what people can pass as a flavor

How to test this pull request

Steps to reproduce:

Checklist

  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

@shubhamsg199 shubhamsg199 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested with foremanctl-3.0.0.develop-1.20260611142851346409.pr559.26.g1fdf97e.el9.noarch
Steps:

  • foremanctl deploy --flavor qwerty

Observation:

  • It throws an expected error foremanctl deploy: error: argument --flavor: invalid choice: 'qwerty' (choose from katello)

@ehelms

ehelms commented Jun 11, 2026

Copy link
Copy Markdown
Member

EL10 failure is unrelated.

@ehelms ehelms merged commit 3040e07 into master Jun 11, 2026
12 of 14 checks passed
@ehelms ehelms deleted the validate-flavor branch June 11, 2026 15:38
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.

4 participants