[cloud] Require src parameter when aws_s3 is used with mode 'put' (#31657)

This commit is contained in:
Sloane Hertel 2017-10-13 13:57:40 -04:00 committed by Ryan Brown
parent e26955fc9a
commit 34e2019251

View file

@ -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':