Commit 99822c6
fix: raise ExportFailedError in _get_target_index for multi-container TaskDef
Mirror the build path: when len(ContainerDefinitions) > 1 and
Metadata.ContainerName is unset, sam package now raises ExportFailedError
instead of silently packaging the first container. Prevents the
wrong-container overwrite in standalone sam package invocations.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 854065b commit 99822c6
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
| |||
0 commit comments