1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 06:59:25 +00:00

Merge pull request #3100 from superseb/v14_fix_etcd_minimal_panic

This commit is contained in:
Jiaqi Luo
2022-12-13 15:56:04 -07:00
committed by GitHub

View File

@@ -51,7 +51,7 @@ func (c *Cluster) SnapshotEtcd(ctx context.Context, snapshotName string) error {
log.Infof(ctx, "[etcd] Finished saving snapshot [%s] on all etcd hosts", snapshotName)
}
if c.Services.Etcd.BackupConfig.S3BackupConfig == nil {
if c.Services.Etcd.BackupConfig != nil && c.Services.Etcd.BackupConfig.S3BackupConfig == nil {
return nil
}