File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def self.api_objects(protocol = 'http',
92
92
password = nil ,
93
93
ca_file = nil ,
94
94
ca_path = nil ,
95
- validate_tls : true )
95
+ validate_tls = true )
96
96
97
97
uri = URI ( "#{ protocol } ://#{ host } :#{ port } /#{ format_uri ( api_discovery_uri ) } " )
98
98
http = Net ::HTTP . new uri . host , uri . port
@@ -158,7 +158,7 @@ def self.prefetch(resources)
158
158
( p . key? ( :password ) ? p [ :password ] . value : nil ) ,
159
159
( p . key? ( :ca_file ) ? p [ :ca_file ] . value : nil ) ,
160
160
( p . key? ( :ca_path ) ? p [ :ca_path ] . value : nil ) ,
161
- { validate_tls : p [ :validate_tls ] . value } ,
161
+ ( p . key? ( :validate_tls ) ? p [ :validate_tls ] . value : true ) ,
162
162
]
163
163
# Deduplicate identical settings, and fetch templates
164
164
end . uniq
@@ -264,7 +264,7 @@ def flush
264
264
resource [ :password ] ,
265
265
resource [ :ca_file ] ,
266
266
resource [ :ca_path ] ,
267
- validate_tls : resource [ :validate_tls ]
267
+ resource [ : validate_tls] . nil? ? true : resource [ :validate_tls ]
268
268
) . find do |t |
269
269
t [ :name ] == resource [ :name ]
270
270
end
You can’t perform that action at this time.
0 commit comments