Skip to content

Commit 1384b0e

Browse files
committedOct 27, 2022
Quick bugfix
1 parent 911eb1f commit 1384b0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/codeflare_sdk/utils/generate_yaml.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ def update_nodes(item, appwrapper_name, min_cpu, max_cpu, min_memory, max_memory
119119
update_image(spec, image)
120120
update_env(spec, env)
121121
if comp == head:
122-
gpu = 0
123-
update_resources(spec, min_cpu, max_cpu, min_memory, max_memory, gpu)
122+
update_resources(spec, min_cpu, max_cpu, min_memory, max_memory, 0)
123+
else:
124+
update_resources(spec, min_cpu, max_cpu, min_memory, max_memory, gpu)
124125

125126
def write_user_appwrapper(user_yaml, output_file_name):
126127
with open(output_file_name,'w') as outfile:

0 commit comments

Comments
 (0)
Please sign in to comment.