Skip to content

Commit 448b70e

Browse files
committed
[core] Include task class defaults in varStack for TaskCommandInfo
1 parent df28fff commit 448b70e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

core/task/task.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ func (t *Task) BuildTaskCommand(role parentRole) (err error) {
173173
log.WithError(err).Error("cannot fetch variables stack for task command info")
174174
return
175175
}
176+
varStack, err = gera.MakeStringMapWithMap(varStack).WrappedAndFlattened(class.Defaults)
177+
if err != nil {
178+
log.WithError(err).Error("cannot fetch task class defaults for task command info")
179+
return
180+
}
181+
176182
fields := append(
177183
template.Fields{
178184
template.WrapPointer(cmd.Value),

0 commit comments

Comments
 (0)