mirror of https://github.com/portainer/portainer
feat(environment): update wording when editing agent environment [EE-3081] (#7445)
* change wording when editing agent environmentpull/7137/merge
parent
02355acfa8
commit
6a4a353b92
@ -1,6 +1,18 @@
|
||||
package endpoints
|
||||
|
||||
import "strings"
|
||||
|
||||
func BoolAddr(b bool) *bool {
|
||||
boolVar := b
|
||||
return &boolVar
|
||||
}
|
||||
|
||||
func normalizeAgentAddress(url string) string {
|
||||
// Case insensitive strip http or https scheme if URL entered
|
||||
index := strings.Index(url, "://")
|
||||
if index >= 0 {
|
||||
return url[index+3:]
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
||||
|
Loading…
Reference in new issue