1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vsphere
Timur Alperovich 66fc952c5a [vsphere] Remove the relative_path attribute.
The <Vsphere::Server>.relative_path attribute depends on having
initialized the <server>.datacenter field (which is lazy loaded).
When the relative_path is computed from the attributes returned by
the underlying rbvmomi call, it is actually an absolute path to the
instance (that is, it includes the Datacenter). However, the path is
meant to be relative to the Datacenter.

The patch proposes the following solution:
* remove the relative_path attribute
* add a <Vsphere::Server>.relative_path method

This works well with the lazy initialization and restores
functionality to methods that rely on the path actually being relative
to the Datacenter.

Fixes: #3041
2014-07-06 18:27:40 -07:00
..
models/compute
requests/compute
compute.rb
core.rb