From c791282c95a3c5905456450ddba7f83f427ab0d0 Mon Sep 17 00:00:00 2001 From: Rob White Date: Sun, 19 Jul 2015 11:10:48 +1000 Subject: [PATCH] Removed requirement for target_bucket --- cloud/amazon/s3_logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/amazon/s3_logging.py b/cloud/amazon/s3_logging.py index 313518510c9..fc199c500dd 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']) )