imperituroard 1.1.19 → 1.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imperituroard/projects/iot.rb +20 -2
- data/lib/imperituroard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da7f0fc8144845989685567ed37d05cb510b8710
|
4
|
+
data.tar.gz: 26bde7ae4b31e772a6684df490a67e8c9aeb1ed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474535bbe80460b3a8a82ae5dde557ead88620b366e57e3a05136bf0e8ef8f27890731a1b17869b82abd2fbec553d6806f6c1686defaa9340a88b4bd10474bf4
|
7
|
+
data.tar.gz: c6fa751ba7c5e19ab8c4af411460add46f1eedc19e3bfaec72b9606abc0bfd3d6ae1413830c0c29dbba978b6b7d2d7f2615337294238a2bc06b63f27b74269f5
|
@@ -1388,8 +1388,26 @@ class IotFunctions_2
|
|
1388
1388
|
|
1389
1389
|
def spa_service_set_2(soapgw_params, real_ip, remote_ip)
|
1390
1390
|
input_params = {:soapgw_params => soapgw_params, :real_ip => real_ip, :remote_ip => remote_ip}
|
1391
|
-
output_answ = {
|
1392
|
-
|
1391
|
+
output_answ = {}
|
1392
|
+
begin
|
1393
|
+
output_answ = {:code => 200,
|
1394
|
+
:message => 'Request completed successfully',
|
1395
|
+
:body => {
|
1396
|
+
:to_soap_gw => {
|
1397
|
+
:code => 200,
|
1398
|
+
:result => 'Request completed successfully'
|
1399
|
+
}}}
|
1400
|
+
mongo_client.audit_spa_logger('spa_service_set_2', {:remote_ip => remote_ip, :real_ip => real_ip}, input_params, output_answ)
|
1401
|
+
rescue
|
1402
|
+
output_answ = {:code => 500,
|
1403
|
+
:message => 'Server error',
|
1404
|
+
:body => {
|
1405
|
+
:to_soap_gw => {
|
1406
|
+
:code => 500,
|
1407
|
+
:result => 'Server error'
|
1408
|
+
}}}
|
1409
|
+
end
|
1410
|
+
output_answ
|
1393
1411
|
end
|
1394
1412
|
|
1395
1413
|
|