Skip to content

Commit

Permalink
Merge pull request hashicorp#490 from terraform-providers/deprecate-d…
Browse files Browse the repository at this point in the history
…uplicate-resource

Begin deprecating duplicate resource
  • Loading branch information
tyrannosaurus-becks authored Aug 5, 2019
2 parents dae43bd + 40023cc commit 256871d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions vault/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
// UnknownPath is used for inventorying paths that have no obvious
// current endpoint they serve in Vault, and may relate to previous
// versions of Vault.
// We aim to deprecate items in this category.
UnknownPath = "unknown"
)

Expand Down
11 changes: 6 additions & 5 deletions vault/resource_pki_secret_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import (

func pkiSecretBackendResource() *schema.Resource {
return &schema.Resource{
Create: pkiSecretBackendCreate,
Read: pkiSecretBackendRead,
Update: pkiSecretBackendUpdate,
Delete: pkiSecretBackendDelete,
Exists: pkiSecretBackendExists,
DeprecationMessage: `This resource duplicates "vault_mount" and will be removed in the next major release.`,
Create: pkiSecretBackendCreate,
Read: pkiSecretBackendRead,
Update: pkiSecretBackendUpdate,
Delete: pkiSecretBackendDelete,
Exists: pkiSecretBackendExists,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Expand Down

0 comments on commit 256871d

Please sign in to comment.