remove error from NewContainer

This commit is contained in:
Donny Xia
2020-09-24 11:37:34 -07:00
parent 52016b22dd
commit acdfd9a920
4 changed files with 7 additions and 22 deletions

View File

@@ -426,7 +426,7 @@ func (r *RunFns) ffp(spec runtimeutil.FunctionSpec, api *yaml.RNode, currentUser
if err != nil {
return nil, err
}
c, err := container.NewContainer(
c := container.NewContainer(
runtimeutil.ContainerSpec{
Image: spec.Container.Image,
Network: spec.Container.Network,
@@ -435,9 +435,6 @@ func (r *RunFns) ffp(spec runtimeutil.FunctionSpec, api *yaml.RNode, currentUser
},
uidgid,
)
if err != nil {
return nil, err
}
cf := &c
cf.Exec.FunctionConfig = api
cf.Exec.GlobalScope = r.GlobalScope