Skip to content

Commit 497cd55

Browse files
committed
Upgrade deprecated schema.State to schema.StateContext
Signed-off-by: Ferran Rodenas <[email protected]>
1 parent 5f258db commit 497cd55

30 files changed

+30
-30
lines changed

vra/data_source_catalog_source_entitlement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func dataSourceCatalogSourceEntitlement() *schema.Resource {
1313
return &schema.Resource{
1414
Read: dataSourceCatalogSourceEntitlementRead,
1515
Importer: &schema.ResourceImporter{
16-
State: schema.ImportStatePassthrough,
16+
StateContext: schema.ImportStatePassthroughContext,
1717
},
1818

1919
Schema: map[string]*schema.Schema{

vra/resource_block_device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func resourceBlockDevice() *schema.Resource {
2222
Update: resourceBlockDeviceUpdate,
2323
Delete: resourceBlockDeviceDelete,
2424
Importer: &schema.ResourceImporter{
25-
State: schema.ImportStatePassthrough,
25+
StateContext: schema.ImportStatePassthroughContext,
2626
},
2727

2828
Schema: map[string]*schema.Schema{

vra/resource_block_device_snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func resourceBlockDeviceSnapshot() *schema.Resource {
2121
Update: resourceBlockDeviceSnapshotUpdate,
2222
Delete: resourceBlockDeviceSnapshotDelete,
2323
Importer: &schema.ResourceImporter{
24-
State: schema.ImportStatePassthrough,
24+
StateContext: schema.ImportStatePassthroughContext,
2525
},
2626

2727
Schema: map[string]*schema.Schema{

vra/resource_blueprint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func resourceBlueprint() *schema.Resource {
1919
Update: resourceBlueprintUpdate,
2020
Delete: resourceBlueprintDelete,
2121
Importer: &schema.ResourceImporter{
22-
State: schema.ImportStatePassthrough,
22+
StateContext: schema.ImportStatePassthroughContext,
2323
},
2424

2525
Schema: map[string]*schema.Schema{

vra/resource_blueprint_version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceBlueprintVersion() *schema.Resource {
1717
Update: resourceBlueprintVersionUpdate,
1818
Delete: resourceBlueprintVersionDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_catalog_source_blueprint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceCatalogSourceBlueprint() *schema.Resource {
1717
Read: resourceCatalogSourceBlueprintRead,
1818
Update: resourceCatalogSourceBlueprintUpdate,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_catalog_source_entitlement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func resourceCatalogSourceEntitlement() *schema.Resource {
1515
Delete: resourceCatalogSourceEntitlementDelete,
1616
Read: resourceCatalogSourceEntitlementRead,
1717
Importer: &schema.ResourceImporter{
18-
State: schema.ImportStatePassthrough,
18+
StateContext: schema.ImportStatePassthroughContext,
1919
},
2020

2121
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountAWS() *schema.Resource {
1616
Update: resourceCloudAccountAWSUpdate,
1717
Delete: resourceCloudAccountAWSDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountAzure() *schema.Resource {
1616
Update: resourceCloudAccountAzureUpdate,
1717
Delete: resourceCloudAccountAzureDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_gcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountGCP() *schema.Resource {
1616
Update: resourceCloudAccountGCPUpdate,
1717
Delete: resourceCloudAccountGCPDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_nsxt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountNSXT() *schema.Resource {
1616
Update: resourceCloudAccountNSXTUpdate,
1717
Delete: resourceCloudAccountNSXTDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_nsxv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountNSXV() *schema.Resource {
1616
Update: resourceCloudAccountNSXVUpdate,
1717
Delete: resourceCloudAccountNSXVDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_vmc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceCloudAccountVMC() *schema.Resource {
1717
Update: resourceCloudAccountVMCUpdate,
1818
Delete: resourceCloudAccountVMCDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_cloud_account_vsphere.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceCloudAccountVsphere() *schema.Resource {
1616
Update: resourceCloudAccountVsphereUpdate,
1717
Delete: resourceCloudAccountVsphereDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_content_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceContentSource() *schema.Resource {
1616
Read: resourceContentSourceRead,
1717
Delete: resourceContentSourceDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func resourceDeployment() *schema.Resource {
3838
Update: resourceDeploymentUpdate,
3939
Delete: resourceDeploymentDelete,
4040
Importer: &schema.ResourceImporter{
41-
State: schema.ImportStatePassthrough,
41+
StateContext: schema.ImportStatePassthroughContext,
4242
},
4343

4444
Schema: map[string]*schema.Schema{

vra/resource_fabric_network_vsphere.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func resourceFabricNetworkVsphere() *schema.Resource {
1818
Update: resourceFabricNetworkVsphereUpdate,
1919
Delete: resourceFabricNetworkVsphereDelete,
2020
Importer: &schema.ResourceImporter{
21-
State: schema.ImportStatePassthrough,
21+
StateContext: schema.ImportStatePassthroughContext,
2222
},
2323
SchemaVersion: 1,
2424

vra/resource_flavor_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceFlavorProfile() *schema.Resource {
1616
Update: resourceFlavorProfileUpdate,
1717
Delete: resourceFlavorProfileDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_image_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func resourceImageProfile() *schema.Resource {
1616
Update: resourceImageProfileUpdate,
1717
Delete: resourceImageProfileDelete,
1818
Importer: &schema.ResourceImporter{
19-
State: schema.ImportStatePassthrough,
19+
StateContext: schema.ImportStatePassthroughContext,
2020
},
2121

2222
Schema: map[string]*schema.Schema{

vra/resource_load_balancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func resourceLoadBalancer() *schema.Resource {
2222
Update: resourceLoadBalancerUpdate,
2323
Delete: resourceLoadBalancerDelete,
2424
Importer: &schema.ResourceImporter{
25-
State: schema.ImportStatePassthrough,
25+
StateContext: schema.ImportStatePassthroughContext,
2626
},
2727

2828
Schema: map[string]*schema.Schema{

vra/resource_machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func resourceMachine() *schema.Resource {
2424
Update: resourceMachineUpdate,
2525
Delete: resourceMachineDelete,
2626
Importer: &schema.ResourceImporter{
27-
State: schema.ImportStatePassthrough,
27+
StateContext: schema.ImportStatePassthroughContext,
2828
},
2929

3030
Schema: map[string]*schema.Schema{

vra/resource_network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func resourceNetwork() *schema.Resource {
2222
Update: resourceNetworkUpdate,
2323
Delete: resourceNetworkDelete,
2424
Importer: &schema.ResourceImporter{
25-
State: schema.ImportStatePassthrough,
25+
StateContext: schema.ImportStatePassthroughContext,
2626
},
2727

2828
Schema: map[string]*schema.Schema{

vra/resource_network_ip_range.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func resourceNetworkIPRange() *schema.Resource {
1818
Update: resourceNetworkIPRangeUpdate,
1919
Delete: resourceNetworkIPRangeDelete,
2020
Importer: &schema.ResourceImporter{
21-
State: schema.ImportStatePassthrough,
21+
StateContext: schema.ImportStatePassthroughContext,
2222
},
2323

2424
Schema: map[string]*schema.Schema{

vra/resource_network_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func resourceNetworkProfile() *schema.Resource {
1818
Update: resourceNetworkProfileUpdate,
1919
Delete: resourceNetworkProfileDelete,
2020
Importer: &schema.ResourceImporter{
21-
State: schema.ImportStatePassthrough,
21+
StateContext: schema.ImportStatePassthroughContext,
2222
},
2323

2424
Schema: map[string]*schema.Schema{

vra/resource_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func resourceProject() *schema.Resource {
1313
Update: resourceProjectUpdate,
1414
Delete: resourceProjectDelete,
1515
Importer: &schema.ResourceImporter{
16-
State: schema.ImportStatePassthrough,
16+
StateContext: schema.ImportStatePassthroughContext,
1717
},
1818

1919
Schema: map[string]*schema.Schema{

vra/resource_storage_profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceStorageProfile() *schema.Resource {
1717
Update: resourceStorageProfileUpdate,
1818
Delete: resourceStorageProfileDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_storage_profile_aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceStorageProfileAws() *schema.Resource {
1717
Update: resourceStorageProfileAwsUpdate,
1818
Delete: resourceStorageProfileAwsDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_storage_profile_azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceStorageProfileAzure() *schema.Resource {
1717
Update: resourceStorageProfileAzureUpdate,
1818
Delete: resourceStorageProfileAzureDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_storage_profile_vsphere.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func resourceStorageProfileVsphere() *schema.Resource {
1717
Update: resourceStorageProfileVsphereUpdate,
1818
Delete: resourceStorageProfileVsphereDelete,
1919
Importer: &schema.ResourceImporter{
20-
State: schema.ImportStatePassthrough,
20+
StateContext: schema.ImportStatePassthroughContext,
2121
},
2222

2323
Schema: map[string]*schema.Schema{

vra/resource_zone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func resourceZone() *schema.Resource {
1515
Update: resourceZoneUpdate,
1616
Delete: resourceZoneDelete,
1717
Importer: &schema.ResourceImporter{
18-
State: schema.ImportStatePassthrough,
18+
StateContext: schema.ImportStatePassthroughContext,
1919
},
2020

2121
Schema: map[string]*schema.Schema{

0 commit comments

Comments
 (0)