Skip to content

Commit 4702009

Browse files
committed
fix unknown
1 parent c1ccd2c commit 4702009

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/fleet/agent_policy/models.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ func (model *agentPolicyModel) populateFromAPI(data *fleetapi.AgentPolicy) {
4343
model.MonitorMetrics = types.BoolValue(true)
4444
}
4545
}
46+
if model.MonitorLogs.IsUnknown() {
47+
model.MonitorLogs = types.BoolNull()
48+
}
49+
if model.MonitorLogs.IsUnknown() {
50+
model.MonitorLogs = types.BoolNull()
51+
}
52+
4653
model.MonitoringOutputId = types.StringPointerValue(data.MonitoringOutputId)
4754
model.Name = types.StringValue(data.Name)
4855
model.Namespace = types.StringValue(data.Namespace)

0 commit comments

Comments
 (0)