Skip to content

Commit ea45b53

Browse files
committed
allow to read integer
1 parent 7a4f21d commit ea45b53

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ require (
6969
gopkg.in/yaml.v2 v2.2.1 // indirect
7070
gotest.tools v2.1.0+incompatible // indirect
7171
)
72+
73+
go 1.13

vault/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func (v *Vault) Read(path string) map[string]interface{} {
7878
}
7979
for k, v := range s.Data {
8080
switch t := v.(type) {
81+
case int:
82+
out[k] = t
8183
case string:
8284
out[k] = base64.StdEncoding.EncodeToString([]byte(t))
8385
case map[string]interface{}:

0 commit comments

Comments
 (0)