Skip to content

Commit

Permalink
Merge pull request #23 from AlexGacon/master
Browse files Browse the repository at this point in the history
Fix error in gwc layer resource format
  • Loading branch information
AlexGacon authored Dec 18, 2023
2 parents cb49b9c + 22ef3b5 commit 1553dc0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions geoserver/resource_geoserver_wmslayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,92 +34,114 @@ func resourceGeoserverWmsLayer() *schema.Resource {
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"native_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"enabled": {
Type: schema.TypeBool,
Optional: true,
Default: true,
ForceNew: true,
},
"projection_policy": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"title": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"abstract": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"native_crs_class": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"native_crs_value": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"srs": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"native_bounding_box_min_x": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"native_bounding_box_max_x": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"native_bounding_box_min_y": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"native_bounding_box_max_y": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"native_bounding_box_crs_class": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"native_bounding_box_crs_value": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_min_x": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_max_x": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_min_y": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_max_y": {
Type: schema.TypeFloat,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_crs_class": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"lat_lon_bounding_box_crs_value": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"metadata": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
ForceNew: true,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion geoserver/resource_gwc_wms_layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func resourceGwcWmsLayerRead(d *schema.ResourceData, meta interface{}) error {
})
}

d.Set("grid_subsets", gridsubsets)
d.Set("grid_subset", gridsubsets)

return nil
}
Expand Down

0 comments on commit 1553dc0

Please sign in to comment.