We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741b3f2 commit 80e5831Copy full SHA for 80e5831
internal/fleet/agent_policy/models.go
@@ -79,7 +79,7 @@ func (model *agentPolicyModel) populateFromAPI(ctx context.Context, data *kbapi.
79
model.MonitoringOutputId = types.StringPointerValue(data.MonitoringOutputId)
80
model.Name = types.StringValue(data.Name)
81
model.Namespace = types.StringValue(data.Namespace)
82
- if serverVersion.GreaterThanOrEqual(MinVersionGlobalDataTags) && data.GlobalDataTags != nil {
+ if serverVersion.GreaterThanOrEqual(MinVersionGlobalDataTags) && len(*data.GlobalDataTags) > 0 {
83
var diag diag.Diagnostics
84
gdt := utils.SliceToListType(ctx, *data.GlobalDataTags, getGlobalDataTagsType(), path.Root("global_data_tags"), &diag, newGlobalDataTagModel)
85
if diag.HasError() {
0 commit comments