Skip to content

Commit

Permalink
fix: Adding os_user to FileSystemPermissionSettings for use in the de…
Browse files Browse the repository at this point in the history
…adline vfs (#94)

* fix: Adding os_user to FileSystemPermissionSettings for use in the deadline
VFS

Signed-off-by: Nathan Matthews <[email protected]>

* fix: pass in missing os_env_vars variable

Signed-off-by: amzn-mike <[email protected]>

---------

Signed-off-by: Nathan Matthews <[email protected]>
Signed-off-by: amzn-mike <[email protected]>
Co-authored-by: amzn-mike <[email protected]>
Signed-off-by: Graeme McHale <[email protected]>
  • Loading branch information
2 people authored and gmchale79 committed Mar 11, 2024
1 parent b6dec34 commit 722cabf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deadline_worker_agent/sessions/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,10 +854,11 @@ def progress_handler(job_upload_status: ProgressReportMetadata) -> bool:
queue_id=self._queue_id, # only used for error message
job_id=self._queue._job_id, # only used for error message
session_dir=self._session.working_directory,
fs_permission_settings=fs_permission_settings,
fs_permission_settings=fs_permission_settings, # type: ignore[arg-type]
storage_profiles_path_mapping_rules=storage_profiles_path_mapping_rules_dict,
step_dependencies=step_dependencies,
on_downloading_files=progress_handler,
os_env_vars=self._env,
)

ASSET_SYNC_LOGGER.info(
Expand Down
1 change: 1 addition & 0 deletions test/unit/sessions/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ def test_asset_loading_method(
storage_profiles_path_mapping_rules={},
step_dependencies=None,
on_downloading_files=ANY,
os_env_vars=ANY,
)

def test_sync_asset_inputs_with_fs_permission_settings(
Expand Down

0 comments on commit 722cabf

Please sign in to comment.