Skip to content

Commit 0cb49d2

Browse files
committed
substitution is applied on yaml nodes
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 813d4cc commit 0cb49d2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

loader/loader.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,7 @@ func loadServiceWithExtends(filename, name string, servicesDict map[string]inter
472472
return nil, err
473473
}
474474

475-
if !opts.SkipInterpolation {
476-
substitute, err := opts.Interpolate.Substitute(string(bytes), template.Mapping(opts.Interpolate.LookupValue))
477-
if err != nil {
478-
return nil, err
479-
}
480-
bytes = []byte(substitute)
481-
}
482-
483-
baseFile, err := ParseYAML(bytes)
475+
baseFile, err := parseConfig(bytes, opts)
484476
if err != nil {
485477
return nil, err
486478
}

0 commit comments

Comments
 (0)