1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 06:34:03 +00:00

Check backupconfig exists before checking s3 cfg

This commit is contained in:
Sebastiaan van Steenis
2022-11-19 16:28:16 +01:00
parent 902491d20d
commit c55e5880b2

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
}