worker: Remove type casting in NewContainer call
* Because the type has the same interface as map[string]string, Go is happy to use the named type or the underlying type Signed-off-by: Denise Yu <dyu@pivotal.io>
This commit is contained in:
parent
e5be5af7c4
commit
ba90cc3c1f
|
@ -78,7 +78,7 @@ func (b *Backend) Create(gdnSpec garden.ContainerSpec) (container garden.Contain
|
||||||
}
|
}
|
||||||
|
|
||||||
cont, err := b.client.NewContainer(ctx,
|
cont, err := b.client.NewContainer(ctx,
|
||||||
gdnSpec.Handle, map[string]string(gdnSpec.Properties), oci,
|
gdnSpec.Handle, gdnSpec.Properties, oci,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = fmt.Errorf("failed to create a container in containerd: %w", err)
|
err = fmt.Errorf("failed to create a container in containerd: %w", err)
|
||||||
|
|
Loading…
Reference in New Issue