diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 08520890b2..0c347b10b5 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -27,7 +27,7 @@ "nightly-latest" ] -def is_os_and_version_excluded(version, os, exclude_params): +def is_os_and_version_excluded(os, version, exclude_params): for exclude_param in exclude_params: if exclude_param[0] == os and exclude_param[1] == version: return True @@ -73,7 +73,7 @@ def writeHeader(checkStream): for runnerImage in runnerImagesForOs: # Skip appending this combination to the matrix if it is explicitly excluded. - if is_os_and_version_excluded(version, operatingSystem, excludedOsesAndVersions): + if is_os_and_version_excluded(operatingSystem, version, excludedOsesAndVersions): continue # Prior to CLI v2.15.1, ARM runners were not supported by the build tracer.