Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Dec 7, 2023
1 parent 298dfb7 commit 56c8a73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/cluster_peer_data_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Retrieves an existing cluster_peer

## Example Usage
```terraform
data "netapp-ontap_cluster_peer_data_source" "cluster_peers" {
data "netapp-ontap_cluster_peer_data_source" "cluster_peer" {
# required to know which system to interface with
cx_profile_name = "cluster4"
name = "ontapcluster"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
data "netapp-ontap_cluster_peer_data_source" "cluster_peers" {
data "netapp-ontap_cluster_peer_data_source" "cluster_peer" {
# required to know which system to interface with
cx_profile_name = "cluster4"
name = "ontapcluster"
Expand Down
9 changes: 1 addition & 8 deletions internal/provider/cluster_peers_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ import (
"github.com/netapp/terraform-provider-netapp-ontap/internal/utils"
)

// TODO:
// copy this file to match you data source (should match internal/provider/cluster_peer_data_source.go)
// replace ClusterPeers with the name of the resource, following go conventions, eg IPInterfaces
// replace cluster_peers with the name of the resource, for logging purposes, eg ip_interfaces
// make sure to create internal/interfaces/cluster_peer.go too)
// delete these 5 lines

// Ensure provider defined types fully satisfy framework interfaces
var _ datasource.DataSource = &ClusterPeersDataSource{}

Expand Down Expand Up @@ -149,7 +142,7 @@ func (d *ClusterPeersDataSource) Schema(ctx context.Context, req datasource.Sche
},
},
Computed: true,
MarkdownDescription: "",
MarkdownDescription: "Cluster Peers",
},
},
}
Expand Down

0 comments on commit 56c8a73

Please sign in to comment.