Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ#2102825 - detect when /var/lib/pulp is owned by an unknown user
Sometimes, if you rsync `/var/lib/pulp` from a different machine, it ends up being owned by a UID/GID that has no mapping on the new system. Ansible's `stat` module then doesn't populate the `pw_name` and `gr_name` attributes, leading to errors like this: error while evaluating conditional (pulp_stat.stat.pw_name != 'pulp' or pulp_stat.stat.gr_name != 'pulp'): 'dict object' has no attribute 'pw_name' Catch those cases and still properly fix the permissions.
- Loading branch information