Skip to content

Commit bfe32ee

Browse files
committed
feat(configure): change HTTP to RESTAPI in configure
REST-API is mentionned in OVHcloud Manager, but not HTTP. Change for coherence. http is kept in the configuration file for backward compatibility
1 parent 84b5008 commit bfe32ee

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ version: 1
110110
profile: default # Name of the active profile
111111
profiles:
112112
default:
113-
http:
113+
http: # Correspond to the REST-API
114114
endpoint: https://myserver.acme.com
115115
ca: /path/to/public-ca.crt # Optional if the CA is in system store
116116
auth:

cmd/okms/configure/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func CreateCommand() *cobra.Command {
4242
}
4343

4444
func Run(profile string) {
45-
choice := exit.OnErr2(pterm.DefaultInteractiveSelect.WithOptions([]string{"HTTP", "KMIP"}).Show("Select a protocol to configure"))
45+
choice := exit.OnErr2(pterm.DefaultInteractiveSelect.WithOptions([]string{"REST-API", "KMIP"}).Show("Select a protocol to configure"))
4646
switch choice {
47-
case "HTTP":
47+
case "REST-API":
4848
config.ReadUserInput("Endpoint", "http.endpoint", profile, config.ValidateURL)
4949
config.ReadUserInput("CA file", "http.ca", profile, config.ValidateFileExists.AllowEmpty())
5050
authChoice := exit.OnErr2(pterm.DefaultInteractiveSelect.WithOptions([]string{"mtls", "token"}).Show("Select authentication to configure"))

0 commit comments

Comments
 (0)