summaryrefslogtreecommitdiff
path: root/cloud/amazon/s3_logging.py
diff options
context:
space:
mode:
authorRob White <wimnat@gmail.com>2015-07-19 11:10:48 +1000
committerRob White <wimnat@gmail.com>2015-07-19 11:10:48 +1000
commitc791282c95a3c5905456450ddba7f83f427ab0d0 (patch)
treeb4576c47b62c658dcdc6ef8bcbded94566472525 /cloud/amazon/s3_logging.py
parentdd4d33b1fe959b57f96ed65ea642a258359cb846 (diff)
downloadansible-modules-extras-c791282c95a3c5905456450ddba7f83f427ab0d0.tar.gz
Removed requirement for target_bucket
Diffstat (limited to 'cloud/amazon/s3_logging.py')
-rw-r--r--cloud/amazon/s3_logging.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloud/amazon/s3_logging.py b/cloud/amazon/s3_logging.py
index 31351851..fc199c50 100644
--- a/cloud/amazon/s3_logging.py
+++ b/cloud/amazon/s3_logging.py
@@ -40,8 +40,8 @@ options:
choices: [ 'present', 'absent' ]
target_bucket:
description:
- - "The bucket to log to."
- required: true
+ - "The bucket to log to. Required when state=present."
+ required: false
default: null
target_prefix:
description:
@@ -142,7 +142,7 @@ def main():
argument_spec.update(
dict(
name = dict(required=True, default=None),
- target_bucket = dict(required=True, default=None),
+ target_bucket = dict(required=False, default=None),
target_prefix = dict(required=False, default=""),
state = dict(required=False, default='present', choices=['present', 'absent'])
)