Skip to content

Commit c04c85d

Browse files
authored
fix: --rhacs flag can be redefined in qa-demo flavor (#1207)
1 parent 9ea1a0b commit c04c85d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/infractl/cluster/create/command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ func Command() *cobra.Command {
7474
for _, osArg := range os.Args {
7575
if strings.Contains(osArg, "qa-demo") {
7676
cmd.Flags().Bool("rhacs", false, "use Red Hat branded images for qa-demo (the default is to use open source images)")
77+
// Abort loop if found, otherwise 'infractl create qa-demo prefix-qa-demo' will attempt to add another --rhacs flag.
78+
break
7779
}
7880
}
7981
return cmd

0 commit comments

Comments
 (0)