Skip to content

Commit

Permalink
fix: Field 'comment' not found in the schema
Browse files Browse the repository at this point in the history
Fixes #213
  • Loading branch information
vaerh committed May 17, 2023
1 parent f414910 commit dc1c771
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions routeros/datasource_ip_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func DatasourceIPAddresses() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
KeyComment: {
Type: schema.TypeString,
Computed: true,
},
"disabled": {
Type: schema.TypeBool,
Computed: true,
Expand Down
5 changes: 5 additions & 0 deletions routeros/datasource_ip_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package routeros

import (
"context"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down Expand Up @@ -31,6 +32,10 @@ func DatasourceIPRoutes() *schema.Resource {
Type: schema.TypeBool,
Computed: true,
},
KeyComment: {
Type: schema.TypeString,
Computed: true,
},
"connect": {
Type: schema.TypeBool,
Computed: true,
Expand Down

0 comments on commit dc1c771

Please sign in to comment.