From c55e5880b2aec9f34f15ebe3d6972afd53358b0b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Sat, 19 Nov 2022 16:28:16 +0100 Subject: [PATCH] Check backupconfig exists before checking s3 cfg --- cluster/etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/etcd.go b/cluster/etcd.go index 907bf56f..897f440c 100644 --- a/cluster/etcd.go +++ b/cluster/etcd.go @@ -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 }