diff --git a/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb b/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb index ef5cc1dc06f..c44b01cabd2 100644 --- a/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +++ b/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb @@ -11,6 +11,7 @@ def prepare_host fail ActiveRecord::RecordNotFound, msg end @host.assign_attributes(host_params('host')) + @host.owner = User.current @host.save! else super