Skip to content

Commit

Permalink
Fixed PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Pappu Kumar <pappu.kumar@progress.com>
  • Loading branch information
Pappu Kumar committed Jan 5, 2023
1 parent 0d0b6dc commit 450a0dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/automate-cli/cmd/chef-automate/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var allPassedFlags string = ""
const (
AUTOMATE_CMD_STOP = "sudo chef-automate stop"
AUTOMATE_CMD_START = "sudo chef-automate start"
BACKUP_CONFIG = "file_system"
)

type BackupFromBashtion interface {
Expand Down Expand Up @@ -1198,8 +1199,8 @@ func (ins *BackupFromBashtionImp) executeOnRemoteAndPoolStatus(commandString str
return status.Wrap(err, status.ConfigError, "unable to fetch HA config")
}

if config.Architecture.ConfigInitials.BackupConfig == "file_system" && isManagedServicesOn() {
writer.Printf("INFO: currently we don't have support for file_system backup and managed service\n")
if config.Architecture.ConfigInitials.BackupConfig == BACKUP_CONFIG && isManagedServicesOn() {
writer.Printf("currently we don't have support for file_system backup with AWS managed DB\n")
return nil
}

Expand Down

0 comments on commit 450a0dd

Please sign in to comment.