Method: Fog::Vcloud::Compute::Real#request
- Defined in:
- lib/fog/vcloud/compute.rb
#request(params) ⇒ Object
If the cookie isn’t set, do a get_organizations call to set it and try the request. If we get an Unauthorized error, we assume the token expired, re-auth and try again
255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/fog/vcloud/compute.rb', line 255 def request(params) unless @cookie do_login end begin do_request(params) rescue Excon::Errors::Unauthorized do_login do_request(params) end end |