mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 18:44:47 +01: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:
@@ -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 == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user