Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
Suppress error when activating technical preview results in error
Browse files Browse the repository at this point in the history
Signed-off-by: F. Gold <fgold@vmware.com>
  • Loading branch information
codegold79 committed Nov 10, 2022
1 parent 6fa51e4 commit 0ff238e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cli/plugin/feature/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ func featureActivate(cmd *cobra.Command, args []string) error {
return fmt.Errorf("could not get Feature %s: %w", featureName, err)
}

displayActivationWarnings(feature)

gates, err := fgClient.GetFeatureGateList(ctx)
if err != nil {
return fmt.Errorf("could not get FeatureGate List: %w", err)
Expand All @@ -76,6 +74,8 @@ func featureActivate(cmd *cobra.Command, args []string) error {
return fmt.Errorf("could not activate Feature %s gated by FeatureGate %s: %w", featureName, gateName, err)
}

displayActivationWarnings(feature)

cmd.Printf("Feature %s gated by FeatureGate %s is activated.\n", featureName, gateName)
return nil
}
Expand Down

0 comments on commit 0ff238e

Please # to comment.