diff --git a/opsmngr/automation_config.go b/opsmngr/automation_config.go index 20be188..ed3a48d 100644 --- a/opsmngr/automation_config.go +++ b/opsmngr/automation_config.go @@ -72,18 +72,18 @@ func (s *AutomationServiceOp) UpdateConfig(ctx context.Context, groupID string, type AutomationConfig struct { AgentVersion *map[string]interface{} `json:"agentVersion,omitempty"` AtlasProxies *[]interface{} `json:"atlasProxies,omitempty"` - AtlasUISes []*map[string]interface{} `json:"atlasUISes"` //nolint:tagliatelle // correct from API + AtlasUISes []*map[string]interface{} `json:"atlasUISes,omitempty"` //nolint:tagliatelle // correct from API Filebeat *map[string]interface{} `json:"filebeat,omitempty"` Auth Auth `json:"auth"` BackupVersions []*ConfigVersion `json:"backupVersions"` Balancer *map[string]interface{} `json:"balancer"` ClusterWideConfigurations *map[string]interface{} `json:"clusterWideConfigurations,omitempty"` CPSModules []*map[string]interface{} `json:"cpsModules"` - DBCheckModules []*map[string]interface{} `json:"dbCheckModules"` + DBCheckModules []*map[string]interface{} `json:"dbCheckModules,omitempty"` IndexConfigs []*IndexConfig `json:"indexConfigs"` Kerberos *map[string]interface{} `json:"kerberos,omitempty"` LDAP *map[string]interface{} `json:"ldap,omitempty"` - MaintainedEnvoys []*map[string]interface{} `json:"maintainedEnvoys"` + MaintainedEnvoys []*map[string]interface{} `json:"maintainedEnvoys,omitempty"` MongoDBToolsVersion *map[string]interface{} `json:"mongoDbToolsVersion,omitempty"` MongoDBVersions []*map[string]interface{} `json:"mongoDbVersions,omitempty"` MongoSQLDs []*map[string]interface{} `json:"mongosqlds"` //nolint:tagliatelle // correct from API diff --git a/opsmngr/automation_config_test.go b/opsmngr/automation_config_test.go index 3ab0e32..317244e 100644 --- a/opsmngr/automation_config_test.go +++ b/opsmngr/automation_config_test.go @@ -664,13 +664,10 @@ func TestAutomation_UpdateMongoDBUserEmptyMechanism(t *testing.T) { }, }, }, - "atlasUISes": interface{}(nil), "backupVersions": interface{}(nil), "balancer": interface{}(nil), "cpsModules": interface{}(nil), - "dbCheckModules": interface{}(nil), "indexConfigs": interface{}(nil), - "maintainedEnvoys": interface{}(nil), "mongosqlds": interface{}(nil), "mongots": interface{}(nil), "onlineArchiveModules": interface{}(nil),