Merge pull request #7644 from edsantiago/bats

Fix CI breakage due to PR collision
This commit is contained in:
OpenShift Merge Robot
2020-09-15 23:07:28 +02:00
committed by GitHub

View File

@ -78,7 +78,7 @@ func wait(cmd *cobra.Command, args []string) error {
return errors.Errorf("%q requires a name, id, or the \"--latest\" flag", cmd.CommandPath()) return errors.Errorf("%q requires a name, id, or the \"--latest\" flag", cmd.CommandPath())
} }
if waitOptions.Latest && len(args) > 0 { if waitOptions.Latest && len(args) > 0 {
return errors.New("--latest and containers are not allowed") return errors.New("--latest and containers cannot be used together")
} }
waitOptions.Condition, err = define.StringToContainerStatus(waitCondition) waitOptions.Condition, err = define.StringToContainerStatus(waitCondition)