Skip to content

Commit

Permalink
Fixed error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Jul 11, 2024
1 parent 891a37d commit 12f6363
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 12f6363

Please sign in to comment.