mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Remove idempotency leftovers of volumes GID,UID (#289)
Fix #282 Remove UID and GID from podman volume options. We don't support idempotency for them due to conflicting changes in podman versions.
This commit is contained in:
parent
afe55dd277
commit
d707f1e7de
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ options:
|
|||
options:
|
||||
description:
|
||||
- Set driver specific options. For example 'device=tpmfs', 'type=tmpfs'.
|
||||
UID and GID idempotency is not supported due to changes in podman.
|
||||
type: list
|
||||
elements: str
|
||||
required: false
|
||||
|
|
@ -232,6 +233,10 @@ class PodmanVolumeDiff:
|
|||
|
||||
def diffparam_options(self):
|
||||
before = self.info['options'] if 'options' in self.info else {}
|
||||
# Removing GID and UID from options list
|
||||
before.pop('uid', None)
|
||||
before.pop('gid', None)
|
||||
# Collecting all other options in the list
|
||||
before = ["=".join((k, v)) for k, v in before.items()]
|
||||
after = self.params['options']
|
||||
# # For UID, GID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue