FiXES #393: missing arg when build as part of run

This commit is contained in:
Muayyad alsadi 2021-12-31 01:17:26 +02:00
parent a1be5ce6b3
commit 0f9fe2bf9f

View File

@ -1347,7 +1347,7 @@ def build_one(compose, args, cnt):
if "target" in build_desc:
build_args.extend(["--target", build_desc["target"]])
container_to_ulimit_args(cnt, build_args)
if args.no_cache:
if getattr(args, 'no_cache', None):
build_args.append("--no-cache")
if getattr(args, 'pull_always', None): build_args.append("--pull-always")
elif getattr(args, 'pull', None): build_args.append("--pull")