From 04d1c633582276708b074bce90fb9a244f7a9947 Mon Sep 17 00:00:00 2001 From: Ben Visser Date: Sat, 26 Dec 2015 11:49:57 -0700 Subject: [PATCH] two choices for cache engine. adding them. revert spacing undoing quotes around default. will do another pull requests Making documentation more explicit for elasticache engine choices. --- cloud/amazon/elasticache.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cloud/amazon/elasticache.py b/cloud/amazon/elasticache.py index a22bea70d72..69108e27b13 100644 --- a/cloud/amazon/elasticache.py +++ b/cloud/amazon/elasticache.py @@ -35,9 +35,10 @@ options: required: true engine: description: - - Name of the cache engine to be used (memcached or redis) + - Name of the cache engine to be used. required: false default: memcached + choices: ['redis', 'memcached'] cache_engine_version: description: - The version number of the cache engine @@ -483,7 +484,7 @@ def main(): argument_spec.update(dict( state={'required': True, 'choices': ['present', 'absent', 'rebooted']}, name={'required': True}, - engine={'required': False, 'default': 'memcached'}, + engine={'required': False, 'choices': ['redis', 'memcached'], 'default': 'memcached'}, cache_engine_version={'required': False}, node_type={'required': False, 'default': 'cache.m1.small'}, num_nodes={'required': False, 'default': None, 'type': 'int'}, @@ -492,9 +493,9 @@ def main(): cache_port={'required': False, 'type': 'int'}, cache_subnet_group={'required': False, 'default': None}, cache_security_groups={'required': False, 'default': [default], - 'type': 'list'}, + 'type': 'list'}, security_group_ids={'required': False, 'default': [], - 'type': 'list'}, + 'type': 'list'}, zone={'required': False, 'default': None}, wait={'required': False, 'type' : 'bool', 'default': True}, hard_modify={'required': False, 'type': 'bool', 'default': False}