Browse Source

Merge "Fix case where there're no effective caps"

tags/1.0.0
Zuul 2 weeks ago
parent
commit
242d9fa2ad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tripleo_ansible/ansible_plugins/modules/podman_container.py

+ 1
- 1
tripleo_ansible/ansible_plugins/modules/podman_container.py View File

@@ -1440,7 +1440,7 @@ class PodmanContainerDiff:
return self._diff_update_and_compare('blkio_weight_device', before, after)

def diffparam_cap_add(self):
before = self.info['effectivecaps']
before = self.info['effectivecaps'] or []
after = self.default_dict['cap_add']
if self.module.params['cap_add'] is not None:
after += ["cap_" + i.lower()

Loading…
Cancel
Save