Skip to content

Commit

Permalink
if file not found don't throw an error
Browse files Browse the repository at this point in the history
Signed-off-by: shaik80 <[email protected]>
  • Loading branch information
shaik80 committed Mar 2, 2022
1 parent 1b03b30 commit 9b90d9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/automate-cli/cmd/chef-automate/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

api "github.com/chef/automate/api/interservice/deployment"
Expand Down Expand Up @@ -399,13 +400,11 @@ func GetPendingPostChecklist(version string) ([]string, error) {
return []string{}, err
}


pendingPostChecklist, err = pmc.ReadPendingPostChecklistFile()
if err != nil {
return []string{}, status.Wrap(
err,
status.DeploymentServiceCallError,
"unable to read checklist file",
)
logrus.Info("Failed to read pending post checklist:", err)
return []string{}, nil
}
return pendingPostChecklist, nil
}
Expand Down

0 comments on commit 9b90d9d

Please sign in to comment.