diff --git a/pkg/cmd/restart.go b/pkg/cmd/restart.go index 2c653f1..8985d57 100644 --- a/pkg/cmd/restart.go +++ b/pkg/cmd/restart.go @@ -73,12 +73,12 @@ var rollingRestartCmd = &cobra.Command{ validateInstance := func(input string) error { _, err := kubernetes.ParseSubject(input) - if err != nil { - return errors.New("Its not a valid Summonplatform or Microservice") - } if strings.Contains(input, " ") { return errors.New("Remove white-spaces from input [" + input + "]") } + if err != nil { + return errors.New("Its not a valid Summonplatform or Microservice") + } return nil } validateInput := func(input string) error {