Skip to content

Commit

Permalink
fix: check value of operating_system.name instead of operating_system (
Browse files Browse the repository at this point in the history
…#117)

Signed-off-by: Trevor Blanchard <[email protected]>
  • Loading branch information
ttblanchard authored Jun 19, 2024
1 parent b4e0ccb commit 094069d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deadline_test_fixtures/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def worker_config(
), f"Expected exactly one Worker agent whl path, but got {resolved_whl_paths} (from pattern {worker_agent_whl_path})"
resolved_whl_path = resolved_whl_paths[0]

if operating_system == "AL2023":
if operating_system.name == "AL2023":
dest_path = posixpath.join("/tmp", os.path.basename(resolved_whl_path))
else:
dest_path = posixpath.join(
Expand All @@ -445,7 +445,7 @@ def worker_config(
with src_path.open(mode="w") as f:
json.dump(service_model.model, f)

if operating_system == "AL2023":
if operating_system.name == "AL2023":
dst_path = posixpath.join("/tmp", src_path.name)
else:
dst_path = posixpath.join("%USERPROFILE%\\AppData\\Local\\Temp", src_path.name)
Expand Down

0 comments on commit 094069d

Please sign in to comment.