Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: Panic in ecs task definitions (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmatov authored Jun 20, 2022
1 parent fcd04d5 commit ecdd07e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/services/ecs/task_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,10 @@ func resolveEcsTaskDefinitionContainerDefinitionsVolumesFrom(ctx context.Context
return nil
}
for _, s := range r.VolumesFrom {
j[*s.SourceContainer] = *s.ReadOnly
if s.SourceContainer == nil {
continue
}
j[*s.SourceContainer] = aws.ToBool(s.ReadOnly)
}
return diag.WrapError(resource.Set(c.Name, j))
}
Expand Down

0 comments on commit ecdd07e

Please sign in to comment.