We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c0e1d2 commit 8ccca28Copy full SHA for 8ccca28
pkg/config/engine/containerd/config_drop_in.go
@@ -153,10 +153,7 @@ func (c *topLevelConfig) removeVersion() {
153
154
func (c *topLevelConfig) ensureImports(dropInFilename string) {
155
config := c.config.Tree
156
- var currentImports []string
157
- if ci, ok := c.config.Get("imports").([]string); ok {
158
- currentImports = ci
159
- }
+ currentImports, _ := c.config.getStringArrayValue([]string{"imports"})
160
161
requiredImport := c.importPattern(dropInFilename)
162
for _, currentImport := range currentImports {
0 commit comments