lib/imperituroard/projects/ukaz60.rb in imperituroard-1.1.7 vs lib/imperituroard/projects/ukaz60.rb in imperituroard-1.1.8

- old
+ new

@@ -58,11 +58,11 @@ if update_fortigate_ansible[:code] == 200 forti_answer = {:code => 200, :result => "Fortigate processed", :data => update_fortigate_ansible[:body][:body], :num_uploaded_to_forti => format_for_forti[:body][:num_list]} else forti_answer = {:code => update_fortigate_ansible[:code], :result => update_fortigate_ansible[:result]} end - #forti_connector.clean_tmp_folders + forti_connector.clean_tmp_folders else forti_answer = {:code => 401, :result => "Failed for uploading data to ansible server"} end else forti_answer = {:code => 400, :result => "Error while processing data"} @@ -83,10 +83,12 @@ if staros_blocks_current[:code] == 200 #compare data with belgim answ = ukaz60_add_func.staros_compare_http(staros_blocks_current, get_belgim_data) + p answ + if answ[:code] == 200 #output_starprocess = {:code => 200, :result => "Staros processed", :data => {:block_me => answ[:body][:for_block][:notblocked_stat], :unblock_me =>answ[:body][:for_unblock][:for_unblock_stat]}} output_starprocess = ukaz60_add_func.format_star_processed_answ(answ)[:body][:to_message] else output_starprocess = answ @@ -108,10 +110,10 @@ forti_answer = {} staros_answer = {} begin get_belgim_data = belgim_connector.belgim_ukaz60_get - p get_belgim_data + #p get_belgim_data if get_belgim_data[:code] == 200 thr_forti = Thread.new do forti_answer = self.forti_process(get_belgim_data)