mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 01:26:59 +02:00
chore(provider/aws): reduce if-nesting, dryRun (#5688)
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
This commit is contained in:
parent
fe7940ce0a
commit
b741f3103c
@ -734,7 +734,11 @@ func (p *AWSProvider) submitChanges(ctx context.Context, changes Route53Changes,
|
||||
log.Infof("Desired change: %s %s %s", c.Action, *c.ResourceRecordSet.Name, c.ResourceRecordSet.Type)
|
||||
}
|
||||
|
||||
if !p.dryRun {
|
||||
if p.dryRun {
|
||||
log.Debug("Dry run mode, skipping change submission")
|
||||
continue
|
||||
}
|
||||
|
||||
params := &route53.ChangeResourceRecordSetsInput{
|
||||
HostedZoneId: aws.String(z),
|
||||
ChangeBatch: &route53types.ChangeBatch{
|
||||
@ -785,7 +789,6 @@ func (p *AWSProvider) submitChanges(ctx context.Context, changes Route53Changes,
|
||||
time.Sleep(p.batchChangeInterval)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if failedUpdate {
|
||||
failedZones = append(failedZones, z)
|
||||
|
Loading…
Reference in New Issue
Block a user