mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Provide fallback for serializers without opts
This commit is contained in:
parent
a238666aba
commit
4910e8191c
1 changed files with 1 additions and 1 deletions
|
@ -4613,7 +4613,7 @@ def serialize(name,
|
|||
ret['comment'] = 'The file {0} is in the correct state'.format(name)
|
||||
return ret
|
||||
dataset = merged_data
|
||||
contents = __serializers__[serializer_name](dataset, **default_serializer_opts[serializer_name])
|
||||
contents = __serializers__[serializer_name](dataset, **default_serializer_opts.get(serializer_name, {}))
|
||||
|
||||
contents += '\n'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue