marty 1.0.50 → 1.0.51
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60c1999e93a298020436ad757f39f5a578c6d8c8
|
4
|
+
data.tar.gz: b0e144e8cf6ad3e99373ec0c5f89d15d7030d235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc71562cf81e8699cbeef23d79f6465fad439ccbe43639422444be67f7d557e80d634ecef1969b8409982b479829ea1319c0d8fac3fc387835b05a821cbe0fae
|
7
|
+
data.tar.gz: 7638536ad3d07a7196b5eff15498f2cb3c04792c280419d16578825cf17ddd4613a21a9535e1c03bf95042dd0c3336b9721711eb06b4badf066e8c89d8c62269
|
@@ -376,8 +376,12 @@ module Marty
|
|
376
376
|
end
|
377
377
|
|
378
378
|
def get_private_ips
|
379
|
-
get_instances['reservationSet']['item'].
|
380
|
-
|
379
|
+
get_instances['reservationSet']['item'].map{
|
380
|
+
|i|
|
381
|
+
item = i['instancesSet']['item']
|
382
|
+
item.is_a?(Array) ? item.map{|i| i['privateIpAddress']} :
|
383
|
+
item['privateIpAddress']
|
384
|
+
}.flatten
|
381
385
|
end
|
382
386
|
end
|
383
387
|
end
|
@@ -82,15 +82,18 @@ class Marty::RpcController < ActionController::Base
|
|
82
82
|
end
|
83
83
|
|
84
84
|
return {error: "Malformed params"} unless params.is_a?(Hash)
|
85
|
-
|
86
|
-
need_input_validate,
|
87
|
-
|
88
|
-
|
89
|
-
opt
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
85
|
+
|
86
|
+
need_log, need_input_validate, need_output_validate, need_strict_validate = (
|
87
|
+
Marty::ApiConfig.lookup sname, node, attr)
|
88
|
+
|
89
|
+
opt = {
|
90
|
+
validate_schema: true,
|
91
|
+
errors_as_objects: true,
|
92
|
+
version: Marty::JsonSchema::RAW_URI,
|
93
|
+
}
|
94
|
+
|
95
|
+
to_append = {"\$schema" => Marty::JsonSchema::RAW_URI}
|
96
|
+
validation_error = nil
|
94
97
|
|
95
98
|
if need_input_validate
|
96
99
|
begin
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arman Bostani
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-11-
|
17
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: pg
|