Skip to content

Commit

Permalink
chore: replace deprecated type schema.ImportStatePassthrough
Browse files Browse the repository at this point in the history
The type `schema.ImportStatePassthrough` has been deprecated in favour of `schema.ImportStatePassthroughContext` in the SDK `helper/schema`.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Oct 16, 2024
1 parent b72c390 commit 539e852
Show file tree
Hide file tree
Showing 81 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_algorithm_type_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func resourceNsxtAlgorithmTypeNsService() *schema.Resource {
Update: resourceNsxtAlgorithmTypeNsServiceUpdate,
Delete: resourceNsxtAlgorithmTypeNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_cluster_virtual_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func resourceNsxtClusterVirualIP() *schema.Resource {
Update: resourceNsxtClusterVirualIPUpdate,
Delete: resourceNsxtClusterVirualIPDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},

Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_compute_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func resourceNsxtComputeManager() *schema.Resource {
Update: resourceNsxtComputeManagerUpdate,
Delete: resourceNsxtComputeManagerDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"revision": getRevisionSchema(),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_dhcp_relay_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtDhcpRelayProfile() *schema.Resource {
Update: resourceNsxtDhcpRelayProfileUpdate,
Delete: resourceNsxtDhcpRelayProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_dhcp_relay_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtDhcpRelayService() *schema.Resource {
Update: resourceNsxtDhcpRelayServiceUpdate,
Delete: resourceNsxtDhcpRelayServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_dhcp_server_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtDhcpServerProfile() *schema.Resource {
Update: resourceNsxtDhcpServerProfileUpdate,
Delete: resourceNsxtDhcpServerProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func resourceNsxtEdgeCluster() *schema.Resource {
Update: resourceNsxtEdgeClusterUpdate,
Delete: resourceNsxtEdgeClusterDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"revision": getRevisionSchema(),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_high_availability_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func resourceNsxtEdgeHighAvailabilityProfile() *schema.Resource {
Update: resourceNsxtEdgeHighAvailabilityProfileUpdate,
Delete: resourceNsxtEdgeHighAvailabilityProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"revision": getRevisionSchema(),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func resourceNsxtEdgeTransportNode() *schema.Resource {
Update: resourceNsxtEdgeTransportNodeUpdate,
Delete: resourceNsxtEdgeTransportNodeDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"revision": getRevisionSchema(),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_transport_node_rtep.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtEdgeTransportNodeRTEP() *schema.Resource {
Update: resourceNsxtEdgeTransportNodeRTEPUpdate,
Delete: resourceNsxtEdgeTransportNodeRTEPDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"edge_id": {
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ether_type_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtEtherTypeNsService() *schema.Resource {
Update: resourceNsxtEtherTypeNsServiceUpdate,
Delete: resourceNsxtEtherTypeNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_failure_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func resourceNsxtFailureDomain() *schema.Resource {
Update: resourceNsxtFailureDomainUpdate,
Delete: resourceNsxtFailureDomainDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},

Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_firewall_section.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func resourceNsxtFirewallSection() *schema.Resource {
Update: resourceNsxtFirewallSectionUpdate,
Delete: resourceNsxtFirewallSectionDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_icmp_type_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func resourceNsxtIcmpTypeNsService() *schema.Resource {
Update: resourceNsxtIcmpTypeNsServiceUpdate,
Delete: resourceNsxtIcmpTypeNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_igmp_type_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtIgmpTypeNsService() *schema.Resource {
Update: resourceNsxtIgmpTypeNsServiceUpdate,
Delete: resourceNsxtIgmpTypeNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtIPBlock() *schema.Resource {
Update: resourceNsxtIPBlockUpdate,
Delete: resourceNsxtIPBlockDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_block_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtIPBlockSubnet() *schema.Resource {
// Update IP block subnet is not supported by the NSX
Delete: resourceNsxtIPBlockSubnetDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_discovery_switching_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtIPDiscoverySwitchingProfile() *schema.Resource {
Update: resourceNsxtIPDiscoverySwitchingProfileUpdate,
Delete: resourceNsxtIPDiscoverySwitchingProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtIPPool() *schema.Resource {
Update: resourceNsxtIPPoolUpdate,
Delete: resourceNsxtIPPoolDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_protocol_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtIPProtocolNsService() *schema.Resource {
Update: resourceNsxtIPProtocolNsServiceUpdate,
Delete: resourceNsxtIPProtocolNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_ip_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtIPSet() *schema.Resource {
Update: resourceNsxtIPSetUpdate,
Delete: resourceNsxtIPSetDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_l4_port_set_ns_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func resourceNsxtL4PortSetNsService() *schema.Resource {
Update: resourceNsxtL4PortSetNsServiceUpdate,
Delete: resourceNsxtL4PortSetNsServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_client_ssl_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbClientSslProfile() *schema.Resource {
Update: resourceNsxtLbClientSslProfileUpdate,
Delete: resourceNsxtLbClientSslProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_cookie_persistence_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func resourceNsxtLbCookiePersistenceProfile() *schema.Resource {
Update: resourceNsxtLbCookiePersistenceProfileUpdate,
Delete: resourceNsxtLbCookiePersistenceProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_fast_tcp_application_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbFastTCPApplicationProfile() *schema.Resource {
Update: resourceNsxtLbFastTCPApplicationProfileUpdate,
Delete: resourceNsxtLbFastTCPApplicationProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_fast_udp_application_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbFastUDPApplicationProfile() *schema.Resource {
Update: resourceNsxtLbFastUDPApplicationProfileUpdate,
Delete: resourceNsxtLbFastUDPApplicationProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_application_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func resourceNsxtLbHTTPApplicationProfile() *schema.Resource {
Update: resourceNsxtLbHTTPApplicationProfileUpdate,
Delete: resourceNsxtLbHTTPApplicationProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbHTTPForwardingRule() *schema.Resource {
Update: resourceNsxtLbHTTPForwardingRuleUpdate,
Delete: resourceNsxtLbHTTPRuleDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbHTTPMonitor() *schema.Resource {
Update: resourceNsxtLbHTTPMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_request_rewrite_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbHTTPRequestRewriteRule() *schema.Resource {
Update: resourceNsxtLbHTTPRequestRewriteRuleUpdate,
Delete: resourceNsxtLbHTTPRuleDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_response_rewrite_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbHTTPResponseRewriteRule() *schema.Resource {
Update: resourceNsxtLbHTTPResponseRewriteRuleUpdate,
Delete: resourceNsxtLbHTTPRuleDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_http_virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbHTTPVirtualServer() *schema.Resource {
Update: resourceNsxtLbHTTPVirtualServerUpdate,
Delete: resourceNsxtLbHTTPVirtualServerDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_https_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbHTTPSMonitor() *schema.Resource {
Update: resourceNsxtLbHTTPSMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_icmp_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceNsxtLbIcmpMonitor() *schema.Resource {
Update: resourceNsxtLbIcmpMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_passive_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbPassiveMonitor() *schema.Resource {
Update: resourceNsxtLbPassiveMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func resourceNsxtLbPool() *schema.Resource {
Update: resourceNsxtLbPoolUpdate,
Delete: resourceNsxtLbPoolDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_server_ssl_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbServerSslProfile() *schema.Resource {
Update: resourceNsxtLbServerSslProfileUpdate,
Delete: resourceNsxtLbServerSslProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func resourceNsxtLbService() *schema.Resource {
Update: resourceNsxtLbServiceUpdate,
Delete: resourceNsxtLbServiceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_source_ip_persistence_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbSourceIPPersistenceProfile() *schema.Resource {
Update: resourceNsxtLbSourceIPPersistenceProfileUpdate,
Delete: resourceNsxtLbSourceIPPersistenceProfileDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_tcp_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbTCPMonitor() *schema.Resource {
Update: resourceNsxtLbTCPMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: getLbL4MonitorSchema("tcp"),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_tcp_virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbTCPVirtualServer() *schema.Resource {
Update: resourceNsxtLbTCPVirtualServerUpdate,
Delete: resourceNsxtLbTCPVirtualServerDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_udp_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbUDPMonitor() *schema.Resource {
Update: resourceNsxtLbUDPMonitorUpdate,
Delete: resourceNsxtLbMonitorDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: getLbL4MonitorSchema("udp"),
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_lb_udp_virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceNsxtLbUDPVirtualServer() *schema.Resource {
Update: resourceNsxtLbUDPVirtualServerUpdate,
Delete: resourceNsxtLbUDPVirtualServerDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_logical_dhcp_port.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func resourceNsxtLogicalDhcpPort() *schema.Resource {
Update: resourceNsxtLogicalDhcpPortUpdate,
Delete: resourceNsxtLogicalDhcpPortDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
DeprecationMessage: mpObjectResourceDeprecationMessage,
Schema: map[string]*schema.Schema{
Expand Down
Loading

0 comments on commit 539e852

Please sign in to comment.