mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
fix for applying tags to new RDS instance
This commit is contained in:
parent
f4b6f815d4
commit
049161dcd0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user