Skip to content

Commit

Permalink
Set deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Mar 25, 2022
1 parent 8060ea0 commit 18404aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloudfoundry/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package cloudfoundry

import (
"context"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"strings"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/terraform-providers/terraform-provider-cloudfoundry/cloudfoundry/managers"
)
Expand All @@ -18,16 +19,19 @@ func Provider() *schema.Provider {
Type: schema.TypeString,
Required: true,
DefaultFunc: schema.EnvDefaultFunc("CF_API_URL", ""),
Deprecated: "This provider is now deprecated. Please switch to cloudfoundry-community/cloudfoundry",
},
"user": &schema.Schema{
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("CF_USER", "admin"),
Deprecated: "This provider is now deprecated. Please switch to cloudfoundry-community/cloudfoundry",
},
"password": &schema.Schema{
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("CF_PASSWORD", ""),
Deprecated: "This provider is now deprecated. Please switch to cloudfoundry-community/cloudfoundry",
},
"sso_passcode": &schema.Schema{
Type: schema.TypeString,
Expand Down

0 comments on commit 18404aa

Please sign in to comment.