Skip to content

Commit

Permalink
Fix nil pointer error (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 authored Oct 14, 2021
1 parent 300e1e2 commit 0d3e42e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,12 @@ func ParseConfigString(
// If this file includes another, parse and merge it. Otherwise just return this config.
if trackInclude != nil {
config, err := handleInclude(config, trackInclude, terragruntOptions, contextExtensions.DecodedDependencies)
if err != nil {
return nil, err
}
// Saving processed includes into configuration, direct assignment since nested includes aren't supported
config.ProcessedIncludes = trackInclude.CurrentMap
return config, err
return config, nil
}
return config, nil
}
Expand Down

0 comments on commit 0d3e42e

Please sign in to comment.