1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules
patchback[bot] 5da6dc7d72
[PR #5943/53f72973 backport][stable-5] zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#6085)
zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#5943)

When setting allow permissions for particular users or groups
there will be circumstances when that user is not known to the
host system.

In that case the output of `zfs allow <pool/dataset>`
looks similar to this:

  $ sudo zfs allow tank/test
  ---- Permissions on tank/test ---------------------------------------
  Local+Descendent permissions:
    user (unknown: 1002) hold
    user zfsuser receive

The fix in this commit removes ' (unknown: '+')' from the output
leaving only the uid/gid.

This allows the current parser to continue even if the uid/gid
is not known.

This situation occurs most often when moving a zpool from one system
to another that may not have the same users/groups. Simply adding
permissions to a user/group and then deleting the user/group
from the system will cause this situation to occur.

(cherry picked from commit 53f729730b)

Co-authored-by: Phil Kauffman <philip@kauffman.me>
2023-02-25 11:48:29 +01:00
..
cloud [PR #5981/68d0cac3 backport][stable-5] Ignore more unnecessary import warnings (#5982) 2023-02-12 22:15:46 +01:00
clustering [PR #5767/217a62ac backport][stable-5] consul: minor fixes in docs (#5770) 2023-01-06 15:17:43 +01:00
database Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
files [PR #5808/6ec04973 backport][stable-5] xml children module parameter does not exist (#5838) 2023-01-14 18:34:45 +01:00
identity [PR #5934/78297e44 backport][stable-5] Fix keycloak sanitize_cr (#6035) 2023-02-22 15:20:15 +01:00
monitoring Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
net_tools [PR #6048/682c6fc9 backport][stable-5] nmcli: Treat order as significant when comparing address lists (#6081) 2023-02-25 11:29:41 +01:00
notification Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
packaging [PR #5998/2c762c47 backport][stable-5] Added support for openSUSE MicroOS (#6077) 2023-02-25 11:23:20 +01:00
remote_management [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
source_control [PR #5989/cd0a414e backport][stable-5] Update gitlab_project_members.py - typo fix (#5990) 2023-02-13 22:07:05 +01:00
storage [PR #5943/53f72973 backport][stable-5] zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#6085) 2023-02-25 11:48:29 +01:00
system [stable-5] Fix pylint errors (#5938) 2023-02-04 17:28:15 +01:00
web_infrastructure [PR #5741/06d72dfe backport][stable-5] htpasswd: improve documentation on crypt_scheme (#5748) 2022-12-31 08:14:57 +01:00