Skip to content

Commit

Permalink
Made the property case insensitive and updated resource_group_name fi…
Browse files Browse the repository at this point in the history
…elds to use shared schema
  • Loading branch information
katbyte committed Apr 17, 2018
1 parent 37e8096 commit 1115b2d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
6 changes: 2 additions & 4 deletions azurerm/data_source_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ func dataSourceArmSnapshot() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
"resource_group_name": {
Type: schema.TypeString,
Required: true,
},

"resource_group_name": resourceGroupNameForDataSourceSchema()

// Computed
"os_type": {
Expand Down
6 changes: 1 addition & 5 deletions azurerm/resource_arm_container_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ func resourceArmContainerGroup() *schema.Resource {

"location": locationSchema(),

"resource_group_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"resource_group_name": resourceGroupNameSchema(),

"ip_address_type": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_container_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func resourceArmContainerService() *schema.Resource {
"vm_size": {
Type: schema.TypeString,
Required: true,
DiffSuppressFunc:ignoreCaseDiffSuppressFunc,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func resourceArmKubernetesCluster() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
DiffSuppressFunc:ignoreCaseDiffSuppressFunc,
},

"os_disk_size_gb": {
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func resourceArmVirtualMachine() *schema.Resource {
"vm_size": {
Type: schema.TypeString,
Required: true,
DiffSuppressFunc:ignoreCaseDiffSuppressFunc,
},

"storage_image_reference": {
Expand Down
6 changes: 1 addition & 5 deletions azurerm/resource_arm_virtual_network_gateway_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ func resourceArmVirtualNetworkGatewayConnection() *schema.Resource {
ForceNew: true,
},

"resource_group_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"resource_group_name": resourceGroupNameSchema(),

"location": locationSchema(),

Expand Down

0 comments on commit 1115b2d

Please sign in to comment.