diff --git a/bib/cmd/bootc-image-builder/cloud.go b/bib/cmd/bootc-image-builder/cloud.go index 8b94b385..98de143b 100644 --- a/bib/cmd/bootc-image-builder/cloud.go +++ b/bib/cmd/bootc-image-builder/cloud.go @@ -34,7 +34,7 @@ func uploadAMI(path, targetArch string, flags *pflag.FlagSet) error { // similar. Eventually we may provide json progress here too. var pbar *pb.ProgressBar switch progress { - case "text": + case "", "plain", "term": pbar = pb.New(0) } diff --git a/bib/cmd/bootc-image-builder/main.go b/bib/cmd/bootc-image-builder/main.go index 693d2382..9a5be5ea 100644 --- a/bib/cmd/bootc-image-builder/main.go +++ b/bib/cmd/bootc-image-builder/main.go @@ -487,6 +487,11 @@ func cmdBuild(cmd *cobra.Command, args []string) error { pbar.SetMessagef("Build complete!") if upload { + // XXX: pass our own progress.ProgressBar here + // *for now* just stop our own progress and let the uploadAMI + // progress take over - but we really need to fix this in a + // followup + pbar.Stop() for idx, imgType := range imgTypes { switch imgType { case "ami":