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:
parent
484252b90f
commit
846174b4ba
1 changed files with 6 additions and 1 deletions
|
@ -58,6 +58,7 @@ options:
|
|||
default: false
|
||||
required: false
|
||||
version_added: "2.1"
|
||||
type: bool
|
||||
http_timeout:
|
||||
description:
|
||||
- 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
|
||||
required: false
|
||||
version_added: "2.1"
|
||||
type: bool
|
||||
push:
|
||||
description:
|
||||
- Push the image to the registry. Specify the registry as part of the I(name) or I(repository) parameter.
|
||||
default: false
|
||||
required: false
|
||||
version_added: "2.2"
|
||||
type: bool
|
||||
rm:
|
||||
description:
|
||||
- Remove intermediate containers after build.
|
||||
default: true
|
||||
required: false
|
||||
version_added: "2.1"
|
||||
type: bool
|
||||
nocache:
|
||||
description:
|
||||
- Do not use cache when building an image.
|
||||
default: false
|
||||
required: false
|
||||
type: bool
|
||||
repository:
|
||||
description:
|
||||
- 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'),
|
||||
load_path=dict(type='path'),
|
||||
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']),
|
||||
pull=dict(type='bool', default=True),
|
||||
push=dict(type='bool', default=False),
|
||||
|
|
Loading…
Reference in a new issue