Skip to content

Commit

Permalink
[akamai] fix domains who get all members removed
Browse files Browse the repository at this point in the history
Akamai doesn't support properties without traffic targets, but akamai
does allow domains without members.

So in case an existing domain loses all it's members, we need to remove
the property completely from akamai to replicate the behaviour without
causing an API inconsistency.
  • Loading branch information
notandy committed Feb 13, 2025
1 parent 2640d24 commit 03fcf8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/driver/akamai/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ MEMBERLOOP:
// Pre-Validation
if len(property.TrafficTargets) == 0 {
// Need traffictargets with datacenters before posting
log.Debugf("Skipping Property '%s': No traffic targets", property.Name)
return provRequests, nil
log.Infof("Skipping/Deleting Property '%s': No traffic targets", property.Name)
return provRequests, s.DeleteProperty(domain, trafficManagementDomain)
}

request := gtm.GetPropertyRequest{
Expand Down

0 comments on commit 03fcf8c

Please sign in to comment.