Skip to content

Commit

Permalink
YDA-5863: fix log messages schema transformation
Browse files Browse the repository at this point in the history
The log messages for copying ACLs did not match the actions that the
system was performing.
  • Loading branch information
stsnel authored and lwesterhof committed Aug 1, 2024
1 parent b657ac0 commit 53cc432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def copy_acls_from_parent(ctx, path, recursive_flag):
log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">")
msi.set_acl(ctx, recursive_flag, "own", user_name, path)
elif access_name == "read object":
log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">")
log.write(ctx, "iiCopyACLsFromParent: granting read to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">")
msi.set_acl(ctx, recursive_flag, "read", user_name, path)
elif access_name == "modify object":
log.write(ctx, "iiCopyACLsFromParent: granting own to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">")
log.write(ctx, "iiCopyACLsFromParent: granting write to <" + user_name + "> on <" + path + "> with recursiveFlag <" + recursive_flag + ">")
msi.set_acl(ctx, recursive_flag, "write", user_name, path)


Expand Down

0 comments on commit 53cc432

Please sign in to comment.