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/models/compute
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
..
cluster.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
clusters.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
customfield.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
customfields.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
customvalue.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
customvalues.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
datacenter.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
datacenters.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
datastore.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
datastores.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
folder.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
folders.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
interface.rb Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00
interfaces.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
interfacetype.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
interfacetypes.rb Remove trailing blank lines 2014-05-26 14:35:26 +01:00
network.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
networks.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
resource_pool.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
resource_pools.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
scsicontroller.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
server.rb [vsphere] Remove the relative_path attribute. 2014-07-06 18:27:40 -07:00
servers.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
servertype.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
servertypes.rb Remove trailing blank lines 2014-05-26 14:35:26 +01:00
template.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
templates.rb Standardise empty lines throughout codebase 2014-05-26 14:20:02 +01:00
volume.rb Standardise on collection methods 2014-05-26 16:22:07 +01:00
volumes.rb Replace deprecated Hash methods 2014-05-26 16:22:08 +01:00