1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-13 07:04:52 +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
commit 6b3732ec1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}