fix: fix tmpfs_size and tmpfs_mode not being set (#580)

* fix: fix tmpfs_size and tmpfs_mode not being set

* fix: wrong file

* fix: add changelog fragment

* fix: update changelog fragment to match formatting

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Kristof Mattei
2023-02-10 05:05:09 -08:00
committed by GitHub
parent 54a3dc151d
commit d2f551fc5d
4 changed files with 120 additions and 2 deletions
@@ -994,8 +994,8 @@ def _set_values_mounts(module, data, api_version, options, values):
tmpfs_opts['Mode'] = mount.get('tmpfs_mode')
if mount.get('tmpfs_size'):
tmpfs_opts['SizeBytes'] = mount.get('tmpfs_size')
if mount.get('tmpfs_opts'):
mount_res['TmpfsOptions'] = mount.get('tmpfs_opts')
if tmpfs_opts:
mount_res['TmpfsOptions'] = tmpfs_opts
mounts.append(mount_res)
data['HostConfig']['Mounts'] = mounts
if 'volumes' in values: