Skip to content

Commit

Permalink
remove extra params from update_priority
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClifford authored and openshift-merge-robot committed Aug 31, 2023
1 parent 7594c49 commit cee3407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codeflare_sdk/utils/generate_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update_labels(yaml, instascale, instance_types):
metadata.pop("labels")


def update_priority(yaml, item, workers, dispatch_priority):
def update_priority(item, dispatch_priority):
if dispatch_priority is not None:
head = item.get("generictemplate").get("spec").get("headGroupSpec")
worker = item.get("generictemplate").get("spec").get("workerGroupSpecs")[0]
Expand Down Expand Up @@ -363,7 +363,7 @@ def generate_appwrapper(
route_item = resources["resources"].get("GenericItems")[1]
update_names(user_yaml, item, appwrapper_name, cluster_name, namespace)
update_labels(user_yaml, instascale, instance_types)
update_priority(user_yaml, item, workers, dispatch_priority)
update_priority(item, dispatch_priority)
update_custompodresources(
item, min_cpu, max_cpu, min_memory, max_memory, gpu, workers
)
Expand Down

0 comments on commit cee3407

Please sign in to comment.