From ed248cef3b7774f6bd2e6f5647c4b25f815c1082 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Fri, 22 Mar 2019 13:47:39 +0000 Subject: [PATCH] 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 --- virtcontainers/kata_shim.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/virtcontainers/kata_shim.go b/virtcontainers/kata_shim.go index cb1cd8e2d..3cd7ceeab 100644 --- a/virtcontainers/kata_shim.go +++ b/virtcontainers/kata_shim.go @@ -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 == "" {