Skip to content

Commit

Permalink
fix: use built recovery config instead of original one
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayS committed Nov 20, 2024
1 parent c4144cd commit 2711f2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func (p *PhysicalInitial) promoteInstance(ctx context.Context, clonePath string,
if syState.Err != nil {
recoveryConfig = buildRecoveryConfig(recoveryFileConfig, p.options.Promotion.Recovery)

if err := cfgManager.ApplyRecovery(recoveryFileConfig); err != nil {
if err := cfgManager.ApplyRecovery(recoveryConfig); err != nil {
return errors.Wrap(err, "failed to apply recovery configuration")
}
} else if err := cfgManager.RemoveRecoveryConfig(); err != nil {
Expand Down

0 comments on commit 2711f2b

Please sign in to comment.