[cloud] Require src parameter when aws_s3 is used with mode 'put' (#31657)
This commit is contained in:
parent
e26955fc9a
commit
34e2019251
1 changed files with 1 additions and 0 deletions
|
@ -599,6 +599,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=argument_spec,
|
argument_spec=argument_spec,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
|
required_if=[('mode', 'put', ('src',))],
|
||||||
)
|
)
|
||||||
|
|
||||||
if module._name == 's3':
|
if module._name == 's3':
|
||||||
|
|
Loading…
Reference in a new issue