File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,8 @@ func (p *AWSProvider) tagsForZone(ctx context.Context, zoneID string) (map[strin
592592
593593func batchChangeSet (cs []* route53.Change , batchSize int ) [][]* route53.Change {
594594 if len (cs ) <= batchSize {
595- return [][]* route53.Change {cs }
595+ res := sortChangesByActionNameType (cs )
596+ return [][]* route53.Change {res }
596597 }
597598
598599 batchChanges := make ([][]* route53.Change , 0 )
@@ -639,10 +640,10 @@ func batchChangeSet(cs []*route53.Change, batchSize int) [][]*route53.Change {
639640
640641func sortChangesByActionNameType (cs []* route53.Change ) []* route53.Change {
641642 sort .SliceStable (cs , func (i , j int ) bool {
642- if * cs [i ].Action < * cs [j ].Action {
643+ if * cs [i ].Action > * cs [j ].Action {
643644 return true
644645 }
645- if * cs [i ].Action > * cs [j ].Action {
646+ if * cs [i ].Action < * cs [j ].Action {
646647 return false
647648 }
648649 if * cs [i ].ResourceRecordSet .Name < * cs [j ].ResourceRecordSet .Name {
You can’t perform that action at this time.
0 commit comments