diff options
author | Matthew Schick <matthew.schick@gmail.com> | 2017-06-19 06:24:19 -0400 |
---|---|---|
committer | John R Barker <john@johnrbarker.com> | 2017-06-19 11:24:19 +0100 |
commit | 846174b4ba1fde9216ca69786ecdb703f175a8b5 (patch) | |
tree | 7c77e0a048f861f97e3881b6a1b696442bd82374 | |
parent | 484252b90f0afaba775b774827b3b49a13d37100 (diff) | |
download | ansible-846174b4ba1fde9216ca69786ecdb703f175a8b5.tar.gz |
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
-rw-r--r-- | lib/ansible/modules/cloud/docker/docker_image.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/docker/docker_image.py b/lib/ansible/modules/cloud/docker/docker_image.py index d8e39992d4..0dce525a6b 100644 --- a/lib/ansible/modules/cloud/docker/docker_image.py +++ b/lib/ansible/modules/cloud/docker/docker_image.py @@ -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), |