From 0de306574e83c625a647a2b57811bb3613ddb9e1 Mon Sep 17 00:00:00 2001 From: Herby Gillot Date: Fri, 9 May 2014 05:43:38 -0400 Subject: [PATCH] rds module: Fix undeclared reference to "params" when setting password in modify mode. --- library/cloud/rds | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/cloud/rds b/library/cloud/rds index 14e888ecc86..e32b28212e7 100644 --- a/library/cloud/rds +++ b/library/cloud/rds @@ -370,6 +370,9 @@ def main(): else: return 'vpc_security_groups' + # Package up the optional parameters + params = {} + # Validate parameters for each command if command == 'create': required_vars = [ 'instance_name', 'db_engine', 'size', 'instance_type', 'username', 'password' ] @@ -413,9 +416,6 @@ def main(): if module.params.get(v): module.fail_json(msg = str("Parameter %s invalid for %s command" % (v, command))) - # Package up the optional parameters - params = {} - if db_engine: params["engine"] = db_engine