Update mongo_return.py

This commit is contained in:
rhealitycheck 2015-09-24 09:57:49 -05:00 committed by rallytime
parent b2b5623da3
commit 34b160b841

View file

@ -173,9 +173,9 @@ def returner(ret):
# save returns in the saltReturns collection in the json format:
# { 'minion': <minion_name>, 'jid': <job_id>, 'return': <return info with dots removed>,
# 'fun': <function>, 'full_ret': <unformatted return with dots removed>}
#
# again we run into the issue with deprecated code from previous versions
if float(version) > 2.3:
#using .copy() to ensure original data for load is unchanged
mdb.saltReturns.insert_one(sdata.copy())