shim: Removed unused type and correct error message

Removed the unused `KataShimConfig` type and updated an error message
that incorrectly mentioned it.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2019-03-22 13:47:39 +00:00
parent 97beb2b2d4
commit ed248cef3b

View File

@ -11,13 +11,6 @@ import (
type kataShim struct{} type kataShim struct{}
// KataShimConfig is the structure providing specific configuration
// for kataShim implementation.
type KataShimConfig struct {
Path string
Debug bool
}
// start is the ccShim start implementation. // start is the ccShim start implementation.
// It starts the cc-shim binary with URL and token flags provided by // It starts the cc-shim binary with URL and token flags provided by
// the proxy. // the proxy.
@ -28,7 +21,7 @@ func (s *kataShim) start(sandbox *Sandbox, params ShimParams) (int, error) {
config, ok := newShimConfig(*(sandbox.config)).(ShimConfig) config, ok := newShimConfig(*(sandbox.config)).(ShimConfig)
if !ok { if !ok {
return -1, fmt.Errorf("Wrong shim config type, should be KataShimConfig type") return -1, fmt.Errorf("Wrong shim config type, should be ShimConfig type")
} }
if config.Path == "" { if config.Path == "" {