Skip to content

Commit

Permalink
bump setfacls app to v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb committed Sep 6, 2024
1 parent 667821c commit 272ea7f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,20 @@ def set_workspace_acls(client, system_id, path, username, operation, role="write


def submit_workspace_acls_job(
username: str, project_uuid: str, action=Literal["add", "remove"]
username: str, project_uuid: str, action: Literal["add", "remove", "dryrun"] = "add"
):
"""
Submit a job to set ACLs on a project for a specific user. This should be used if
we are setting ACLs on an existing project, since there might be too many files for
the synchronous Tapis endpoint to be performant.
"""
client = service_account()
username_string = username.split(",")[0]

job_body = {
"name": f"setfacl-project-{project_uuid.split('-')[0]}-{username}-{action}",
"name": f"setfacl-project-{project_uuid.split('-')[0]}-{username_string}-{action}",
"appId": "setfacl-corral-tg458981",
"appVersion": "0.0.1",
"appVersion": "0.0.2",
"description": "Add/Remove ACLs on a directory",
"fileInputs": [],
"parameterSet": {
Expand Down

0 comments on commit 272ea7f

Please sign in to comment.