Skip to content

Commit 96da185

Browse files
Make FLASHBOOT an enum value
Because FLASHBOOT is an enum value, running create_endpoint throws runpod.error.QueryError: Enum "FlashBootType" cannot represent non-enum value: "FLASHBOOT" if FLASHBOOT is passed as string.
1 parent 3a5f8c7 commit 96da185

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runpod/api/mutations/endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def generate_endpoint_mutation(
2323

2424
# ------------------------------ Required Fields ----------------------------- #
2525
if flashboot:
26-
input_fields.append('flashBootType: "FLASHBOOT"')
26+
input_fields.append('flashBootType: FLASHBOOT')
2727

2828
input_fields.append(f'name: "{name}"')
2929
input_fields.append(f'templateId: "{template_id}"')

0 commit comments

Comments
 (0)