mirror of
https://github.com/rancher/rke.git
synced 2025-09-03 07:54:14 +00:00
Check backupconfig exists before checking s3 cfg
This commit is contained in:
@@ -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)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user