jfrog-client-go icon indicating copy to clipboard operation
jfrog-client-go copied to clipboard

GetPermissionTarget returns non-nil err when permission target doesn't exist

Open M0roSan opened this issue 3 years ago • 1 comments

GetPermissionTarget returns non-nil err when permission target doesn't exist. I would like it to return nil err when permission target doesn't exist.

This will be useful when I perform Create/Update/Delete permission target operation. I initially check whether the permission target exists in the system.

Other instances

  • GetUser returns nil err when a user doesn't exist
  • GetGroup returns nil err when a group doesn't exist

M0roSan avatar Apr 21 '21 23:04 M0roSan

I think the above PR addressed this issue, so it can probably be closed.

SteveNewson avatar Aug 11 '22 11:08 SteveNewson