Skip to content

Commit

Permalink
adds deprecation on vnc_port
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadlevy committed Apr 9, 2012
1 parent 3d3c04d commit 0383957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/fog/libvirt/models/compute/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ def update_display attrs = {}
reload
end

# can't use deprecate method, as the value is part of the display hash
def vnc_port
Fog::Logger.deprecation("#{self.class} => #vnc_port is deprecated, use #display[:port] instead [light_black](#{caller.first})[/]")
display[:port]
end

private
attr_accessor :volumes_path

Expand Down

0 comments on commit 0383957

Please sign in to comment.