Skip to content

Commit

Permalink
Print a message if no hosted zones match (aws provider) (#592)
Browse files Browse the repository at this point in the history
* Print a message if no hosted zones match (aws provider)

Fixes #590

* Remove early return
  • Loading branch information
svend authored and hjacobs committed Jun 14, 2018
1 parent 2ee4b2e commit e01cf2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provider/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ func (p *AWSProvider) submitChanges(changes []*route53.Change) error {

// separate into per-zone change sets to be passed to the API.
changesByZone := changesByZone(zones, changes)
if len(changesByZone) == 0 {
log.Info("No matching hosted zones")
}

for z, cs := range changesByZone {
limCs := limitChangeSet(cs, maxChangeCount)
Expand Down

0 comments on commit e01cf2f

Please sign in to comment.