mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-23 19:51:09 +01:00
parent
5fa9b1a8ef
commit
732a3fa60b
@ -149,6 +149,9 @@ func parseArgsDataString(stdin io.Reader, args []string) (map[string]string, err
|
|||||||
if err := mapstructure.WeakDecode(raw, &result); err != nil {
|
if err := mapstructure.WeakDecode(raw, &result); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to convert values to strings")
|
return nil, errors.Wrap(err, "failed to convert values to strings")
|
||||||
}
|
}
|
||||||
|
if result == nil {
|
||||||
|
result = make(map[string]string)
|
||||||
|
}
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user