Skip to content

Commit

Permalink
CodeBuild-provided runtimes: loop over Enum __members__ to include al…
Browse files Browse the repository at this point in the history
…iases
  • Loading branch information
cnfait committed Sep 11, 2024
1 parent e6605ab commit 135c6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seedfarmer/commands/_runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ImageRuntimes(Enum):
def get_runtimes(codebuild_image: Optional[str]) -> Optional[Dict[str, str]]:
image_vals = [cbi.value for cbi in CuratedBuildImages.ImageEnums]
if codebuild_image in image_vals:
cir_d = {cir.name: cir.value for cir in CuratedBuildImages.ImageRuntimes}
cir_d = {cir: runtime.value for cir, runtime in CuratedBuildImages.ImageRuntimes.__members__.items()}
k = CuratedBuildImages.ImageEnums(codebuild_image).name
return cir_d[k]
else:
Expand Down

0 comments on commit 135c6dd

Please sign in to comment.