1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes read replica create BC break (#3365)

This commit is contained in:
Michael Moussa 2016-04-12 17:32:12 -04:00 committed by Matt Clay
parent 42d784c24b
commit 0494dced3a

View file

@ -1080,7 +1080,7 @@ def main():
module.fail_json(msg="Region not specified. Unable to determine region from EC2_REGION.")
# set port to per db defaults if not specified
if module.params['port'] is None and module.params['command'] in ['create', 'replicate']:
if module.params['port'] is None and module.params['db_engine'] is not None and module.params['command'] == 'create':
if '-' in module.params['db_engine']:
engine = module.params['db_engine'].split('-')[0]
else: