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

This commit is contained in:
Zuul 2019-11-18 23:11:41 +00:00 committed by Gerrit Code Review
commit 242d9fa2ad
1 changed files with 1 additions and 1 deletions

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()