Skip to content

Commit

Permalink
Merge pull request #103 from akamai/gtm_maint
Browse files Browse the repository at this point in the history
Omit DatacenterId from DC Body if zero (not set)
  • Loading branch information
edglynes authored Jul 31, 2020
2 parents 77bd4a2 + 1f8a85b commit 439bf2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configgtm-v1_4/datacenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package configgtm

import (
"github.com/akamai/AkamaiOPEN-edgegrid-golang/client-v1"

"errors"
"fmt"
"strconv"
Expand All @@ -29,7 +28,7 @@ type Datacenter struct {
Nickname string `json:"nickname,omitempty"`
PingInterval int `json:"pingInterval,omitempty"`
PingPacketSize int `json:"pingPacketSize,omitempty"`
DatacenterId int `json:"datacenterId"`
DatacenterId int `json:"datacenterId,omitempty"`
ScorePenalty int `json:"scorePenalty,omitempty"`
ServermonitorLivenessCount int `json:"servermonitorLivenessCount,omitempty"`
ServermonitorLoadCount int `json:"servermonitorLoadCount,omitempty"`
Expand Down

0 comments on commit 439bf2c

Please sign in to comment.