Update nocache to be the proper bool type instead of string (#24358)

* Update nocache to be the proper bool type instead of string

* Add proper bool type for params
This commit is contained in:
Matthew Schick 2017-06-19 06:24:19 -04:00 committed by John R Barker
parent 484252b90f
commit 846174b4ba

View file

@ -58,6 +58,7 @@ options:
default: false default: false
required: false required: false
version_added: "2.1" version_added: "2.1"
type: bool
http_timeout: http_timeout:
description: description:
- Timeout for HTTP requests during the image build operation. Provide a positive integer value for the number of - Timeout for HTTP requests during the image build operation. Provide a positive integer value for the number of
@ -82,23 +83,27 @@ options:
default: true default: true
required: false required: false
version_added: "2.1" version_added: "2.1"
type: bool
push: push:
description: description:
- Push the image to the registry. Specify the registry as part of the I(name) or I(repository) parameter. - Push the image to the registry. Specify the registry as part of the I(name) or I(repository) parameter.
default: false default: false
required: false required: false
version_added: "2.2" version_added: "2.2"
type: bool
rm: rm:
description: description:
- Remove intermediate containers after build. - Remove intermediate containers after build.
default: true default: true
required: false required: false
version_added: "2.1" version_added: "2.1"
type: bool
nocache: nocache:
description: description:
- Do not use cache when building an image. - Do not use cache when building an image.
default: false default: false
required: false required: false
type: bool
repository: repository:
description: description:
- Full path to a repository. Use with state C(present) to tag the image into the repository. Expects - Full path to a repository. Use with state C(present) to tag the image into the repository. Expects
@ -572,7 +577,7 @@ def main():
http_timeout=dict(type='int'), http_timeout=dict(type='int'),
load_path=dict(type='path'), load_path=dict(type='path'),
name=dict(type='str', required=True), name=dict(type='str', required=True),
nocache=dict(type='str', default=False), nocache=dict(type='bool', default=False),
path=dict(type='path', aliases=['build_path']), path=dict(type='path', aliases=['build_path']),
pull=dict(type='bool', default=True), pull=dict(type='bool', default=True),
push=dict(type='bool', default=False), push=dict(type='bool', default=False),