From 049161dcd0b91b055629977f368d432e995afcb6 Mon Sep 17 00:00:00 2001 From: Jared McKnight Date: Wed, 7 Dec 2016 14:56:52 -0500 Subject: [PATCH] fix for applying tags to new RDS instance --- salt/modules/boto_rds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/boto_rds.py b/salt/modules/boto_rds.py index f736f71da9..d0175bc51c 100644 --- a/salt/modules/boto_rds.py +++ b/salt/modules/boto_rds.py @@ -277,10 +277,10 @@ def create(name, allocated_storage, db_instance_class, engine, val = locals()[key] if val is not None: mapped = boto3_param_map[key] + if key == 'tags': + val = _tag_doc(val) kwargs[mapped[0]] = mapped[1](val) - taglist = _tag_doc(tags) - # Validation doesn't want parameters that are None # https://github.com/boto/boto3/issues/400 kwargs = dict((k, v) for k, v in six.iteritems(kwargs) if v is not None)