Skip to content

Commit

Permalink
Merge pull request #13 from kinvolk/tormath1/fix-endpoints
Browse files Browse the repository at this point in the history
locksmithcl: reset `endpoints` when we set a new one
  • Loading branch information
Mathieu Tortuyaux committed Aug 27, 2021
2 parents 63cef2d + 9287272 commit b54e4c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locksmithctl/locksmithctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (e *endpoints) String() string {
}

func (e *endpoints) Set(value string) error {
*e = []string{}
for _, url := range strings.Split(value, ",") {
*e = append(*e, strings.TrimSpace(url))
}
Expand Down

0 comments on commit b54e4c6

Please sign in to comment.