Bug fixes for GCP modules (#56766)

This commit is contained in:
The Magician 2019-05-28 10:41:20 -07:00 committed by ansibot
parent 532de89b44
commit 2220b9c851
6 changed files with 31 additions and 77 deletions

View file

@ -50,10 +50,8 @@ options:
action:
description:
- Upload or download from the bucket.
- 'Some valid choices include: "download", "upload"'
required: false
choices:
- download
- upload
overwrite:
description:
- "'Overwrite the file on the bucket/local machine. If overwrite is false and
@ -140,7 +138,7 @@ def main():
module = GcpModule(
argument_spec=dict(
state=dict(default='present', choices=['present', 'absent'], type='str'),
action=dict(type='str', choices=['download', 'upload']),
action=dict(type='str'),
overwrite=dict(type='bool'),
src=dict(type='path'),
dest=dict(type='path'),