Skip to content

Commit

Permalink
Merge pull request #1419 from gruntwork-io/1418-error-checks
Browse files Browse the repository at this point in the history
Fixed error checking in recoveryservices.go
  • Loading branch information
denis256 authored Jul 12, 2024
2 parents 4dfb76d + 12f6363 commit 710d6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/azure/recoveryservices.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GetRecoveryServicesVaultBackupProtectedVMList(t *testing.T, policyName, vau
return list
}

// RecoveryServicesVaultExists indicates whether a recovery services vault exists; otherwise false or error.
// RecoveryServicesVaultExistsE indicates whether a recovery services vault exists; otherwise false or error.
func RecoveryServicesVaultExistsE(vaultName, resourceGroupName, subscriptionID string) (bool, error) {
_, err := GetRecoveryServicesVaultE(vaultName, resourceGroupName, subscriptionID)
if err != nil {
Expand Down Expand Up @@ -118,9 +118,9 @@ func GetRecoveryServicesVaultBackupProtectedVMListE(policyName, vaultName, resou
return nil, err
}

resourceGroupName, err2 := getTargetAzureResourceGroupName(resourceGroupName)
resourceGroupName, err = getTargetAzureResourceGroupName(resourceGroupName)
if err != nil {
return nil, err2
return nil, err
}

client := backup.NewProtectedItemsGroupClient(subscriptionID)
Expand Down

0 comments on commit 710d6af

Please sign in to comment.