File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ func expandClusterConfig(config interface{}) (
9292 clusterConfig .ExecProviderConfig .APIVersion = v .(string )
9393 }
9494 if k == "args" {
95- clusterConfig .ExecProviderConfig .Args = v .([]string )
95+ argsI := v .([]interface {})
96+ for _ , argI := range argsI {
97+ clusterConfig .ExecProviderConfig .Args = append (clusterConfig .ExecProviderConfig .Args , argI .(string ))
98+ }
9699 }
97100 if k == "command" {
98101 clusterConfig .ExecProviderConfig .Command = v .(string )
@@ -101,7 +104,11 @@ func expandClusterConfig(config interface{}) (
101104 clusterConfig .ExecProviderConfig .InstallHint = v .(string )
102105 }
103106 if k == "env" {
104- clusterConfig .ExecProviderConfig .Env = v .(map [string ]string )
107+ clusterConfig .ExecProviderConfig .Env = make (map [string ]string )
108+ envI := v .(map [string ]interface {})
109+ for key , val := range envI {
110+ clusterConfig .ExecProviderConfig .Env [key ] = val .(string )
111+ }
105112 }
106113 }
107114 }
You can’t perform that action at this time.
0 commit comments