app/lib/actions/katello/host/update.rb in katello-3.5.2 vs app/lib/actions/katello/host/update.rb in katello-3.6.0.rc1

- old
+ new

@@ -8,12 +8,10 @@ action_subject host sequence do host.content_facet.save! if host.content_facet if host.subscription_facet - unless consumer_params - consumer_params = host.subscription_facet.consumer_attributes - end + consumer_params ||= host.subscription_facet.consumer_attributes cp_update = plan_action(::Actions::Candlepin::Consumer::Update, host.subscription_facet.uuid, consumer_params) end if consumer_params.present? && consumer_params['autoheal'] plan_action(::Actions::Candlepin::Consumer::AutoAttachSubscriptions, :uuid => host.subscription_facet.uuid)