Skip to content

Commit

Permalink
Service display has been renamed to visible.
Browse files Browse the repository at this point in the history
To avoid name conflict with Kernel#display method.
https://bugzilla.redhat.com/show_bug.cgi?id=1737559
  • Loading branch information
lfu committed Aug 27, 2019
1 parent 82f109f commit 6ac2699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Service < ApplicationRecord
include CiFeatureMixin
include CustomActionsMixin
include CustomAttributeMixin
include DeprecationMixin
include ExternalUrlMixin
include LifecycleMixin
include Metric::CiMixin
Expand Down Expand Up @@ -107,6 +108,7 @@ class Service < ApplicationRecord
alias parent_service parent
alias_attribute :service, :parent
virtual_belongs_to :service
deprecate_attribute :display, :visible

def power_states
vms.map(&:power_state)
Expand Down

0 comments on commit 6ac2699

Please sign in to comment.