From 042e092ac85bc3e66bbab9fc8abb13fdb74e9f03 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 4 Oct 2017 12:01:14 -0500 Subject: [PATCH] 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. --- salt/states/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/module.py b/salt/states/module.py index 2e907959f7..058a2e5ddc 100644 --- a/salt/states/module.py +++ b/salt/states/module.py @@ -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,