Remove no-cache option in build.py
no-cache is marked for removal. we should move to cache parameter instead. Ie6d5ab380a22c32eb6a5cee29ff7912e9f4cfe74 handle this parameter for mistak. TrivialFix Change-Id: I4a6bc3eca07e9930381091fcf735529019523975
This commit is contained in:
parent
1863399686
commit
156abd6b6a
@ -92,8 +92,6 @@ _CLI_OPTS = [
|
||||
cfg.BoolOpt('cache', default=True,
|
||||
help='Use the Docker cache when building',
|
||||
),
|
||||
cfg.BoolOpt('no-cache', default=False,
|
||||
help='Do not use the Docker cache when building'),
|
||||
cfg.MultiOpt('profile', types.String(), short='p',
|
||||
help=('Build a pre-defined set of images, see [profiles]'
|
||||
' section in config. The default profiles are:'
|
||||
|
@ -247,7 +247,7 @@ class BuildTask(DockerTask):
|
||||
self.conf = conf
|
||||
self.image = image
|
||||
self.push_queue = push_queue
|
||||
self.nocache = not conf.cache or conf.no_cache
|
||||
self.nocache = not conf.cache
|
||||
self.forcerm = not conf.keep
|
||||
self.logger = image.logger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user