From 34e20192516a65836781985578aba28ffbc48b11 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Fri, 13 Oct 2017 13:57:40 -0400 Subject: [PATCH] [cloud] Require src parameter when aws_s3 is used with mode 'put' (#31657) --- lib/ansible/modules/cloud/amazon/aws_s3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/amazon/aws_s3.py b/lib/ansible/modules/cloud/amazon/aws_s3.py index db2c7450a8..2ed2002ee9 100644 --- a/lib/ansible/modules/cloud/amazon/aws_s3.py +++ b/lib/ansible/modules/cloud/amazon/aws_s3.py @@ -599,6 +599,7 @@ def main(): module = AnsibleModule( argument_spec=argument_spec, supports_check_mode=True, + required_if=[('mode', 'put', ('src',))], ) if module._name == 's3':