Skip to content

Commit

Permalink
Fixed spelling error in site recovery configuration (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
martenbohlin authored and katbyte committed Aug 20, 2019
1 parent 5b87dd8 commit 84163e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
16 changes: 8 additions & 8 deletions azurerm/resource_arm_recovery_services_replicated_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func resourceArmRecoveryServicesReplicatedVm() *schema.Resource {
ValidateFunc: azure.ValidateResourceID,
DiffSuppressFunc: suppress.CaseDifference,
},
"targert_disk_type": {
"target_disk_type": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Expand All @@ -137,7 +137,7 @@ func resourceArmRecoveryServicesReplicatedVm() *schema.Resource {
}, true),
DiffSuppressFunc: suppress.CaseDifference,
},
"targert_replica_disk_type": {
"target_replica_disk_type": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Expand Down Expand Up @@ -198,15 +198,15 @@ func resourceArmRecoveryReplicatedItemCreate(d *schema.ResourceData, meta interf
diskId := diskInput["disk_id"].(string)
primaryStagingAzureStorageAccountID := diskInput["staging_storage_account_id"].(string)
recoveryResourceGroupId := diskInput["target_resource_group_id"].(string)
targertReplicaDiskType := diskInput["targert_replica_disk_type"].(string)
targertDiskType := diskInput["targert_disk_type"].(string)
targetReplicaDiskType := diskInput["target_replica_disk_type"].(string)
targetDiskType := diskInput["target_disk_type"].(string)

managedDisks = append(managedDisks, siterecovery.A2AVMManagedDiskInputDetails{
DiskID: &diskId,
PrimaryStagingAzureStorageAccountID: &primaryStagingAzureStorageAccountID,
RecoveryResourceGroupID: &recoveryResourceGroupId,
RecoveryReplicaDiskAccountType: &targertReplicaDiskType,
RecoveryTargetDiskAccountType: &targertDiskType,
RecoveryReplicaDiskAccountType: &targetReplicaDiskType,
RecoveryTargetDiskAccountType: &targetDiskType,
})
}

Expand Down Expand Up @@ -283,8 +283,8 @@ func resourceArmRecoveryReplicatedItemRead(d *schema.ResourceData, meta interfac
diskOutput["disk_id"] = *disk.DiskID
diskOutput["staging_storage_account_id"] = *disk.PrimaryStagingAzureStorageAccountID
diskOutput["target_resource_group_id"] = *disk.RecoveryResourceGroupID
diskOutput["targert_replica_disk_type"] = *disk.RecoveryReplicaDiskAccountType
diskOutput["targert_disk_type"] = *disk.RecoveryTargetDiskAccountType
diskOutput["target_replica_disk_type"] = *disk.RecoveryReplicaDiskAccountType
diskOutput["target_disk_type"] = *disk.RecoveryTargetDiskAccountType

disksOutput = append(disksOutput, diskOutput)
}
Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_recovery_services_replicated_vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ resource "azurerm_recovery_replicated_vm" "test" {
disk_id = "${azurerm_virtual_machine.test.storage_os_disk.0.managed_disk_id}"
staging_storage_account_id = "${azurerm_storage_account.test.id}"
target_resource_group_id = "${azurerm_resource_group.test2.id}"
targert_disk_type = "Premium_LRS"
targert_replica_disk_type = "Premium_LRS"
target_disk_type = "Premium_LRS"
target_replica_disk_type = "Premium_LRS"
}
depends_on = ["azurerm_recovery_services_protection_container_mapping.test", "azurerm_recovery_network_mapping.test"]
}
Expand Down
9 changes: 4 additions & 5 deletions website/docs/r/recovery_services_replicated_vm.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ resource "azurerm_recovery_replicated_vm" "vm-replication" {
disk_id = "${azurerm_virtual_machine.vm.storage_os_disk.0.managed_disk_id}"
staging_storage_account_id = "${azurerm_storage_account.primary.id}"
target_resource_group_id = "${azurerm_resource_group.secondary.id}"
targert_disk_type = "Premium_LRS"
targert_replica_disk_type = "Premium_LRS"
target_disk_type = "Premium_LRS"
target_replica_disk_type = "Premium_LRS"
}
}
```
Expand Down Expand Up @@ -202,10 +202,9 @@ A `managed_disk` block supports the following:

* `target_resource_group_id` - (Required) Resource group disk should belong to when a failover is done.

* `targert_disk_type` - (Required) What type should the disk be when a failover is done.

* `targert_replica_disk_type` - (Required) What type should the disk be that holds the replication data.
* `target_disk_type` - (Required) What type should the disk be when a failover is done.

* `target_replica_disk_type` - (Required) What type should the disk be that holds the replication data.

## Attributes Reference

Expand Down

0 comments on commit 84163e6

Please sign in to comment.