Skip to content

Commit

Permalink
Wrap exported values in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstah committed Nov 8, 2017
1 parent f624c49 commit 879fd8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vault-ec2-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ProcessExport(export string, data map[string]Data) {
parts := strings.Split(path, ".")
m := data[parts[0]]
res := m[parts[1]]
fmt.Println(fmt.Sprintf("export %s=%s", exportKey, res))
fmt.Println(fmt.Sprintf("export %s=\"%s\"", exportKey, res))
}

func main() {
Expand Down
2 changes: 1 addition & 1 deletion vault-token-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func ProcessExport(export string, data map[string]Data) {
parts := strings.Split(path, ".")
m := data[parts[0]]
res := m[parts[1]]
fmt.Println(fmt.Sprintf("export %s=%s", exportKey, res))
fmt.Println(fmt.Sprintf("export %s=\"%s\"", exportKey, res))
}

func main() {
Expand Down

0 comments on commit 879fd8a

Please sign in to comment.