From 846174b4ba1fde9216ca69786ecdb703f175a8b5 Mon Sep 17 00:00:00 2001 From: Matthew Schick Date: Mon, 19 Jun 2017 06:24:19 -0400 Subject: [PATCH] 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 --- lib/ansible/modules/cloud/docker/docker_image.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_image.py b/lib/ansible/modules/cloud/docker/docker_image.py index d8e39992d45..0dce525a6b7 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),