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:
parent
632a3ae4df
commit
e8e2a5fa56
1 changed files with 2 additions and 0 deletions
|
|
@ -68,10 +68,12 @@ func (r *SiteResource) Schema(ctx context.Context, req resource.SchemaRequest, r
|
|||
"latitude": schema.Float64Attribute{
|
||||
Description: "The latitude of the site (-90 to 90).",
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
},
|
||||
"longitude": schema.Float64Attribute{
|
||||
Description: "The longitude of the site (-180 to 180).",
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
},
|
||||
"snmp_community": schema.StringAttribute{
|
||||
Description: "The default SNMP community string for devices at this site.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue