Module: InsightsCloud::CandlepinProxiesExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/insights_cloud/candlepin_proxies_extensions.rb
Instance Method Summary collapse
Instance Method Details
#update_insights_client_status ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/concerns/insights_cloud/candlepin_proxies_extensions.rb', line 12 def update_insights_client_status # Update InsightsClientReportStatus whenever host checks in via subscription-manager # This ensures USER_OMITTED status gets set even when insights-client isn't installed # (parameter=false means insights-client won't be installed, so it won't hit MachineTelemetriesController) hoststatus = @host.get_status(InsightsClientReportStatus) Rails.logger.debug "Current status: #{hoststatus.to_label}" @host.get_status(InsightsClientReportStatus).refresh! @host.refresh_global_status! Rails.logger.debug "New status: #{hoststatus.to_label}" end |