mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1399 from maestrodev/vsphere_public_ip
[vsphere] Add vsphere public_ip_address correctly
This commit is contained in:
commit
f21f721c0a
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ module Fog
|
||||||
class Vsphere
|
class Vsphere
|
||||||
|
|
||||||
class Server < Fog::Compute::Server
|
class Server < Fog::Compute::Server
|
||||||
|
extend Fog::Deprecation
|
||||||
|
deprecate(:ipaddress, :public_ip_address)
|
||||||
|
|
||||||
# This will be the instance uuid which is globally unique across
|
# This will be the instance uuid which is globally unique across
|
||||||
# a vSphere deployment.
|
# a vSphere deployment.
|
||||||
|
@ -22,7 +24,7 @@ module Fog
|
||||||
attribute :uuid
|
attribute :uuid
|
||||||
attribute :hostname
|
attribute :hostname
|
||||||
attribute :operatingsystem
|
attribute :operatingsystem
|
||||||
attribute :ipaddress, :aliases => 'public_ip_address'
|
attribute :public_ip_address, :aliases => 'ipaddress'
|
||||||
attribute :power_state, :aliases => 'power'
|
attribute :power_state, :aliases => 'power'
|
||||||
attribute :tools_state, :aliases => 'tools'
|
attribute :tools_state, :aliases => 'tools'
|
||||||
attribute :tools_version
|
attribute :tools_version
|
||||||
|
|
Loading…
Add table
Reference in a new issue