diff --git a/salt/utils/json.py b/salt/utils/json.py index 787beafa17..7d562a5fad 100644 --- a/salt/utils/json.py +++ b/salt/utils/json.py @@ -104,7 +104,7 @@ def dump(obj, fp, **kwargs): kwargs['ensure_ascii'] = False if six.PY2: obj = salt.utils.data.encode(obj) - return json.dump(obj, fp, **kwargs) # future lint: blacklisted-function + return json_module.dump(obj, fp, **kwargs) # future lint: blacklisted-function def dumps(obj, **kwargs):