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:
parent
42d784c24b
commit
0494dced3a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue