Merge "podman_container: only add --rm if rm is True"

This commit is contained in:
Zuul 2020-04-17 15:35:08 +00:00 committed by Gerrit Code Review
commit 31a289fbce
1 changed files with 3 additions and 1 deletions

View File

@ -1172,7 +1172,9 @@ class PodmanModuleParams:
return c + ['--restart=%s' % self.params['restart_policy']]
def addparam_rm(self, c):
return c + ['--rm=%s' % self.params['rm']]
if self.params['rm']:
c += ['--rm']
return c
def addparam_rootfs(self, c):
return c + ['--rootfs=%s' % self.params['rootfs']]