1
0
mirror of https://github.com/rancher/rke.git synced 2025-10-20 18:40:43 +00:00

Don't disable all backups based on backup flag

This commit is contained in:
moelsayed
2019-03-12 01:04:08 +02:00
committed by Alena Prokharchyk
parent b6d90f4110
commit 5d1084ad80
3 changed files with 3 additions and 5 deletions

View File

@@ -293,7 +293,7 @@ func RunEtcdSnapshotSave(ctx context.Context, etcdHost *hosts.Host, prsMap map[s
imageCfg.Cmd = append(imageCfg.Cmd, "--creation="+es.Creation)
}
if es.BackupConfig != nil && es.BackupConfig.Enabled != nil && *es.BackupConfig.Enabled {
if es.BackupConfig != nil {
imageCfg = configS3BackupImgCmd(ctx, imageCfg, es.BackupConfig)
}
hostCfg := &container.HostConfig{