mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
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:
parent
97beb2b2d4
commit
ed248cef3b
@ -11,13 +11,6 @@ import (
|
||||
|
||||
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.
|
||||
// It starts the cc-shim binary with URL and token flags provided by
|
||||
// the proxy.
|
||||
@ -28,7 +21,7 @@ func (s *kataShim) start(sandbox *Sandbox, params ShimParams) (int, error) {
|
||||
|
||||
config, ok := newShimConfig(*(sandbox.config)).(ShimConfig)
|
||||
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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user