parent
2d90155d5a
commit
f4f61cb57a
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ import (
|
||||||
func argsToEnv(from map[string]interface{}, to map[string]string) error {
|
func argsToEnv(from map[string]interface{}, to map[string]string) error {
|
||||||
|
|
||||||
for k, v := range from {
|
for k, v := range from {
|
||||||
|
if v == nil {
|
||||||
|
to[k] = ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
t := reflect.TypeOf(v)
|
t := reflect.TypeOf(v)
|
||||||
vv := reflect.ValueOf(v)
|
vv := reflect.ValueOf(v)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue