Skip to content

Commit

Permalink
Update error msg...
Browse files Browse the repository at this point in the history
  • Loading branch information
WodansSon committed May 16, 2024
1 parent 762773a commit 60c0a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/keyvault/key_vault_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ func resourceKeyVaultCreate(d *pluginsdk.ResourceData, meta interface{}) error {
if features.FourPointOhBeta() {
// In v4.0 providers block creation of all key vaults if the configuration
// file contains a 'contact' field...
return fmt.Errorf("%s: The `contact` field is not supported for new key vaults", id)
return fmt.Errorf("%s: `contact` field is not supported for new key vaults", id)
} else if !isPublic {
// In v3.x providers block creation of key vaults if 'public_network_access_enabled'
// is 'false'...
return fmt.Errorf("`contact` cannot be specified when `public_network_access_enabled` is set to `false`")
return fmt.Errorf("%s: `contact` cannot be specified when `public_network_access_enabled` is set to `false`", id)
}
}

Expand Down

0 comments on commit 60c0a5c

Please sign in to comment.