From 9383d91ff890bd4d3ed5521d67300bf40c5b9fb1 Mon Sep 17 00:00:00 2001 From: rallytime Date: Tue, 22 Sep 2015 15:01:52 -0600 Subject: [PATCH] Change a value list to a comma-separated string in boto_route53.present Fixes #15514 --- salt/states/boto_route53.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/salt/states/boto_route53.py b/salt/states/boto_route53.py index d5641647e6c0..b1c635f74219 100644 --- a/salt/states/boto_route53.py +++ b/salt/states/boto_route53.py @@ -126,6 +126,11 @@ def present( ''' ret = {'name': name, 'result': True, 'comment': '', 'changes': {}} + # If a list is passed in for value, change it to a comma-separated string + # So it will work with subsequent boto module calls and string functions + if isinstance(value, list): + value = ','.join(value) + record = __salt__['boto_route53.get_record'](name, zone, record_type, False, region, key, keyid, profile)