Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def action_permission
helper 'bastion/layout'

append_view_path('app/views/foreman')
before_action :find_resource, :only => [:pulp_storage]

def pulp_storage
find_resource
@storage = @smart_proxy.pulp_disk_usage
respond_to do |format|
format.html { render :layout => false }
Expand Down
5 changes: 4 additions & 1 deletion app/models/katello/concerns/smart_proxy_extensions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'proxy_api'
require 'proxy_api/container_gateway'

module Katello
Expand Down Expand Up @@ -91,6 +90,10 @@ def self.pulp_primary!
pulp_primary || fail(_("Could not find a smart proxy with pulp feature."))
end

def self.default_capsule
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this used?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny enough, the foreman_rh_cloud plugin uses it. It should switch to using pulp_primary ideally.

pulp_primary
end

def self.with_environment(environment)
pulpcore_proxies_with_environment(environment).try(:uniq)
end
Expand Down
Loading