Skip to content

Commit

Permalink
Merge pull request #16067 from durandom/parent_manager_delegation
Browse files Browse the repository at this point in the history
delegate name attribute to parent_manager
  • Loading branch information
agrare committed Sep 29, 2017
2 parents cbc2859 + 742b0d6 commit 191e937
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/monitoring_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ def self.ems_type
def self.description
"Monitoring Manager".freeze
end

def name
"#{parent_manager.try(:name)} Monitoring Manager"
end
end
end
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,9 @@ def self.supported_types_and_descriptions_hash
end
end
end

def name
"#{parent_manager.try(:name)} Network Manager"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def description
@description ||= "Cinder ".freeze
end

def name
"#{parent_manager.try(:name)} Cinder Manager"
end

def supports_api_version?
true
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def description
@description ||= "Swift ".freeze
end

def name
"#{parent_manager.try(:name)} Swift Manager"
end

def supports_api_version?
true
end
Expand Down

0 comments on commit 191e937

Please sign in to comment.