update upgrade query (#7567)

This commit is contained in:
SaReN 2020-10-16 00:32:45 +05:30 committed by GitHub
parent c735a8eb81
commit 332d8ec038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ func GetCurrentPlanCmd() *cobra.Command {
return err
}
if len(res.Plan.Name) == 0 {
if res.Plan == nil {
return fmt.Errorf("no upgrade scheduled")
}