fix for applying tags to new RDS instance

This commit is contained in:
Jared McKnight 2016-12-07 14:56:52 -05:00
parent f4b6f815d4
commit 049161dcd0

View File

@ -277,10 +277,10 @@ def create(name, allocated_storage, db_instance_class, engine,
val = locals()[key] val = locals()[key]
if val is not None: if val is not None:
mapped = boto3_param_map[key] mapped = boto3_param_map[key]
if key == 'tags':
val = _tag_doc(val)
kwargs[mapped[0]] = mapped[1](val) kwargs[mapped[0]] = mapped[1](val)
taglist = _tag_doc(tags)
# Validation doesn't want parameters that are None # Validation doesn't want parameters that are None
# https://github.com/boto/boto3/issues/400 # https://github.com/boto/boto3/issues/400
kwargs = dict((k, v) for k, v in six.iteritems(kwargs) if v is not None) kwargs = dict((k, v) for k, v in six.iteritems(kwargs) if v is not None)