Don't put unserializable dict.keys() into state return

Running ``list()`` on the dictionary produces the same list, and has the
benefit of not catastrophically failing on Python 3.
This commit is contained in:
Erik Johnson 2017-10-04 12:01:14 -05:00
parent 7038248820
commit 042e092ac8
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -253,7 +253,7 @@ def run(**kwargs):
if 'name' in kwargs:
kwargs.pop('name')
ret = {
'name': kwargs.keys(),
'name': list(kwargs),
'changes': {},
'comment': '',
'result': None,