Fix --log-level=debug for buildah

When using it without '=' it breaks somewhere down the road of the
process.execute call.

Change-Id: I5a7bb54f954b64a08ef1d534d3d471cd673327ab
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2020-11-18 13:49:26 +01:00
parent 52112d428d
commit 8f50effd79
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class BuildahBuilder(base.BaseBuilder):
# from userspace, which would be slower.
self.buildah_cmd = ['sudo', 'buildah']
if self.debug:
self.buildah_cmd.append('--log-level debug')
self.buildah_cmd.append('--log-level=debug')
def _find_container_dir(self, container_name):
"""Return the path of the Dockerfile/Containerfile directory.

View File

@ -110,7 +110,7 @@ class TestBuildahBuilder(base.TestCase):
dest = '127.0.0.1:8787/master/fedora-binary-fedora-base:latest'
container_build_path = WORK_DIR + '/' + 'fedora-base'
logfile = '/tmp/kolla/fedora-base/fedora-base-build.log'
buildah_cmd_build = ['--log-level debug', 'bud', '--format', 'docker',
buildah_cmd_build = ['--log-level=debug', 'bud', '--format', 'docker',
'--tls-verify=False', '--logfile',
logfile, '-t', dest, container_build_path]
args.extend(buildah_cmd_build)