mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Change a value list to a comma-separated string in boto_route53.present
Fixes #15514
This commit is contained in:
parent
775a4f9ad0
commit
9383d91ff8
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue