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 1ae728f commit 741b3f2Copy full SHA for 741b3f2
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 *data.GlobalDataTags != nil && serverVersion.GreaterThanOrEqual(MinVersionGlobalDataTags) {
+ if serverVersion.GreaterThanOrEqual(MinVersionGlobalDataTags) && data.GlobalDataTags != nil {
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