Skip to content

Commit 8ccca28

Browse files
[no-relnote] containerd fix import appending
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 1c0e1d2 commit 8ccca28

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/config/engine/containerd/config_drop_in.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,7 @@ func (c *topLevelConfig) removeVersion() {
153153

154154
func (c *topLevelConfig) ensureImports(dropInFilename string) {
155155
config := c.config.Tree
156-
var currentImports []string
157-
if ci, ok := c.config.Get("imports").([]string); ok {
158-
currentImports = ci
159-
}
156+
currentImports, _ := c.config.getStringArrayValue([]string{"imports"})
160157

161158
requiredImport := c.importPattern(dropInFilename)
162159
for _, currentImport := range currentImports {

0 commit comments

Comments
 (0)