diff --git a/commands/property.go b/commands/property.go index b87bd4605..16c22a66d 100644 --- a/commands/property.go +++ b/commands/property.go @@ -21,6 +21,7 @@ import ( "errors" "fmt" "os" + "strings" "github.com/fatih/color" homedir "github.com/mitchellh/go-homedir" @@ -471,7 +472,7 @@ func loadProperties() error { } if apiHost, hasProp := props["APIHOST"]; hasProp { - Properties.APIHost = apiHost + Properties.APIHost = strings.TrimRight(apiHost, "/") } if apiHost := os.Getenv("WHISK_APIHOST"); len(apiHost) > 0 {