Skip to content

Commit

Permalink
Merge pull request #27309 from rallytime/fix-15514
Browse files Browse the repository at this point in the history
Change a value list to a comma-separated string in boto_route53.present
  • Loading branch information
Mike Place committed Sep 23, 2015
2 parents b5fe944 + 9383d91 commit bd3771e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions salt/states/boto_route53.py
Expand Up @@ -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)
Expand Down

0 comments on commit bd3771e

Please sign in to comment.