Skip to content

Commit cee3407

Browse files
remove extra params from update_priority
1 parent 7594c49 commit cee3407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codeflare_sdk/utils/generate_yaml.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def update_labels(yaml, instascale, instance_types):
8989
metadata.pop("labels")
9090

9191

92-
def update_priority(yaml, item, workers, dispatch_priority):
92+
def update_priority(item, dispatch_priority):
9393
if dispatch_priority is not None:
9494
head = item.get("generictemplate").get("spec").get("headGroupSpec")
9595
worker = item.get("generictemplate").get("spec").get("workerGroupSpecs")[0]
@@ -363,7 +363,7 @@ def generate_appwrapper(
363363
route_item = resources["resources"].get("GenericItems")[1]
364364
update_names(user_yaml, item, appwrapper_name, cluster_name, namespace)
365365
update_labels(user_yaml, instascale, instance_types)
366-
update_priority(user_yaml, item, workers, dispatch_priority)
366+
update_priority(item, dispatch_priority)
367367
update_custompodresources(
368368
item, min_cpu, max_cpu, min_memory, max_memory, gpu, workers
369369
)

0 commit comments

Comments
 (0)