Commit b7805802 by James Cammarata

Merge pull request #7342 from herbygillot/rds-params-fix

rds module: Fix undeclared reference to "params" when setting password in modify mode
parents 54ac0fe9 efbe4ca8
...@@ -370,6 +370,9 @@ def main(): ...@@ -370,6 +370,9 @@ def main():
else: else:
return 'vpc_security_groups' return 'vpc_security_groups'
# Package up the optional parameters
params = {}
# Validate parameters for each command # Validate parameters for each command
if command == 'create': if command == 'create':
required_vars = [ 'instance_name', 'db_engine', 'size', 'instance_type', 'username', 'password' ] required_vars = [ 'instance_name', 'db_engine', 'size', 'instance_type', 'username', 'password' ]
...@@ -413,9 +416,6 @@ def main(): ...@@ -413,9 +416,6 @@ def main():
if module.params.get(v): if module.params.get(v):
module.fail_json(msg = str("Parameter %s invalid for %s command" % (v, command))) module.fail_json(msg = str("Parameter %s invalid for %s command" % (v, command)))
# Package up the optional parameters
params = {}
if db_engine: if db_engine:
params["engine"] = db_engine params["engine"] = db_engine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment