Skip to content

Commit

Permalink
Using DepricationMixin to wrap callers of address
Browse files Browse the repository at this point in the history
We tried simply removing it before, but we think some automate users
may be using it, even though the tests pasted.
  • Loading branch information
Julian Cheal committed Mar 2, 2017
1 parent 92b5071 commit 4f709fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Host < ApplicationRecord
include SupportsFeatureMixin
include NewWithTypeStiMixin
include TenantIdentityMixin
include DeprecationMixin

VENDOR_TYPES = {
# DB Displayed
Expand Down Expand Up @@ -92,10 +93,9 @@ class Host < ApplicationRecord

serialize :settings, Hash

# TODO: Remove all callers of address
alias_attribute :address, :hostname
alias_attribute :state, :power_state
alias_attribute :to_s, :name
deprecate_attribute :address, :hostname
alias_attribute :state, :power_state
alias_attribute :to_s, :name

include SerializedEmsRefObjMixin
include ProviderObjectMixin
Expand Down

0 comments on commit 4f709fb

Please sign in to comment.