fix site lat/lng inconsistent result after apply

mark latitude and longitude as Computed in addition to Optional so
the provider accepts server-set values (geocoding, UI) when the user
omits them from config
This commit is contained in:
Graham McIntire 2026-03-18 09:33:22 -05:00
parent 632a3ae4df
commit e8e2a5fa56
No known key found for this signature in database

View file

@ -68,10 +68,12 @@ func (r *SiteResource) Schema(ctx context.Context, req resource.SchemaRequest, r
"latitude": schema.Float64Attribute{ "latitude": schema.Float64Attribute{
Description: "The latitude of the site (-90 to 90).", Description: "The latitude of the site (-90 to 90).",
Optional: true, Optional: true,
Computed: true,
}, },
"longitude": schema.Float64Attribute{ "longitude": schema.Float64Attribute{
Description: "The longitude of the site (-180 to 180).", Description: "The longitude of the site (-180 to 180).",
Optional: true, Optional: true,
Computed: true,
}, },
"snmp_community": schema.StringAttribute{ "snmp_community": schema.StringAttribute{
Description: "The default SNMP community string for devices at this site.", Description: "The default SNMP community string for devices at this site.",