From 094069d92863fbc7c1c2f0cf61647ae9fc8622df Mon Sep 17 00:00:00 2001 From: ttblanchard <55503092+ttblanchard@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:29:26 -0500 Subject: [PATCH] fix: check value of operating_system.name instead of operating_system (#117) Signed-off-by: Trevor Blanchard <55503092+ttblanchard@users.noreply.github.com> --- src/deadline_test_fixtures/fixtures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deadline_test_fixtures/fixtures.py b/src/deadline_test_fixtures/fixtures.py index 56dceb6..ae46315 100644 --- a/src/deadline_test_fixtures/fixtures.py +++ b/src/deadline_test_fixtures/fixtures.py @@ -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( @@ -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)