fixed report

This commit is contained in:
amartynov 2015-08-10 15:10:47 +03:00
parent efec7d914a
commit 794883aaa6

View File

@ -43,11 +43,11 @@ module Connectors
end
def set_report_status(jid, status)
@reports.update({"_id" => id}, {"$set" => {"status" => status, "updated_at" => Time.new}})
collection.update({"_id" => jid}, {"$set" => {"status" => status, "updated_at" => Time.new}})
end
def set_report_server_data id, chef_node_name, host
@reports.update({"_id" => id}, {"$set" => {"chef_node_name" => chef_node_name, "host" => host}})
collection.update({"_id" => id}, {"$set" => {"chef_node_name" => chef_node_name, "host" => host}})
end
private