Skip to content

Commit

Permalink
Fix deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ismirlia committed Mar 1, 2024
1 parent 283a6a7 commit f35414d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ibm/service/power/data_source_ibm_pi_dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func DataSourceIBMPIDhcp() *schema.Resource {
// Attributes
Attr_DhcpID: {
Computed: true,
Deprecated: "The field is deprecated, use id instead.",
Deprecated: "The field is deprecated, use pi_dhcp_id instead.",
Description: "ID of the DHCP Server.",
Type: schema.TypeString,
},
Expand Down
1 change: 0 additions & 1 deletion ibm/service/power/data_source_ibm_pi_dhcps.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func DataSourceIBMPIDhcps() *schema.Resource {
Schema: map[string]*schema.Schema{
Attr_DhcpID: {
Computed: true,
Deprecated: "The field is deprecated, use id instead.",
Description: "ID of the DHCP Server.",
Type: schema.TypeString,
},
Expand Down
1 change: 0 additions & 1 deletion website/docs/d/pi_dhcp.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Review the argument references that you can specify for your data source.
In addition to all argument reference list, you can access the following attribute references after your data source is created.

- `dhcp_id` - (Deprecated, String) ID of the DHCP Server.
- `id` - (String) ID of the DHCP Server.
- `leases` - (List) List of DHCP Server PVM Instance leases.
Nested scheme for `leases`:
- `instance_ip` - (String) IP of the PVM Instance.
Expand Down
3 changes: 1 addition & 2 deletions website/docs/d/pi_dhcps.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ In addition to all argument reference list, you can access the following attribu
- `servers` - (List) List of all the DHCP Servers.

Nested scheme for `servers`:
- `dhcp_id` - (Deprecated, String) ID of the DHCP Server.
- `id` - (String) ID of the DHCP Server.
- `dhcp_id` - (String) ID of the DHCP Server.
- `network` - (String) ID of the DHCP Server private network (deprecated - replaced by `network_id`).
- `network_id`- (String) ID of the DHCP Server private network.
- `network_name` - (String) Name of the DHCP Server private network.
Expand Down

0 comments on commit f35414d

Please sign in to comment.