Skip to content

Commit

Permalink
Merge pull request juju#17444 from Aflynn50/remove-discorse-link-in-docs
Browse files Browse the repository at this point in the history
juju#17444

<!-- Why this change is needed and what it does. -->
Remove an outdated/irrelevant link from the add-credential documentation. The information is available on the docs and the link to the discourse post no longer adds anything

## QA steps
```
cd ./cmd/juju/cloud
go test ./...
```

## Links

**Launchpad bug:** https://bugs.launchpad.net/juju/+bug/2049440
**Jira card:** JUJU-3662
  • Loading branch information
jujubot authored May 30, 2024
2 parents 6102801 + ee075f4 commit b65775c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions cmd/juju/cloud/addcredential.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ Use --controller option to upload a credential to a controller.
Use --client option to add a credential to the current client.
Further help:
Please visit https://discourse.charmhub.io/t/1508 for cloud-specific
instructions.
`

const usageAddCredentialExamples = `
Expand Down
3 changes: 0 additions & 3 deletions cmd/juju/cloud/addcredential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ Enter credential name:
Using auth-type "jsonfile".
Enter path to the .json file containing a service account key for your project
(detailed instructions available at https://discourse.charmhub.io/t/1508).
Path:
`[1:]
stderr := `
Expand Down Expand Up @@ -973,7 +972,6 @@ Enter your choice, or type Q|q to quit: Enter credential name:
Using auth-type "jsonfile".
Enter path to the .json file containing a service account key for your project
(detailed instructions available at https://discourse.charmhub.io/t/1508).
Path:
Credential "blah" added locally for cloud "remote".
Expand Down Expand Up @@ -1002,7 +1000,6 @@ Enter credential name:
Using auth-type "jsonfile".
Enter path to the .json file containing a service account key for your project
(detailed instructions available at https://discourse.charmhub.io/t/1508).
Path:
`[1:]
stderr := `
Expand Down
2 changes: 1 addition & 1 deletion provider/gce/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (environProviderCredentials) CredentialSchemas() map[cloud.AuthType]cloud.C
cloud.JSONFileAuthType: {{
Name: credAttrFile,
CredentialAttr: cloud.CredentialAttr{
Description: "path to the .json file containing a service account key for your project\n(detailed instructions available at https://discourse.charmhub.io/t/1508).\nPath",
Description: "path to the .json file containing a service account key for your project\nPath",
FilePath: true,
},
}},
Expand Down

0 comments on commit b65775c

Please sign in to comment.