fixed report
This commit is contained in:
parent
efec7d914a
commit
794883aaa6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user