mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update mongo_return.py
This commit is contained in:
parent
b2b5623da3
commit
34b160b841
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue