Skip to content

Commit 92e72fd

Browse files
author
vladhanzha
committed
Add wrapper object for dns zones
1 parent 909b89e commit 92e72fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudconnexa/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (c *SettingsService) GetDNSZones() ([]DNSZone, error) {
139139

140140
// SetDNSZones updates the DNS zones configuration
141141
func (c *SettingsService) SetDNSZones(value []DNSZone) ([]DNSZone, error) {
142-
jsonValue, err := json.Marshal(value)
142+
jsonValue, err := json.Marshal(DNSZones{value})
143143
if err != nil {
144144
return nil, err
145145
}

0 commit comments

Comments
 (0)