From 9800ec36a3cf130cb4484df2093bb3a279b1fb30 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Thu, 24 Oct 2024 10:39:58 +0200 Subject: [PATCH] Fix uninitialized constant ForemanRhCloud::VERSION Workflows: - insights client registration - rh_cloud_inventory:report:generate task --- app/services/foreman_rh_cloud/cloud_request_forwarder.rb | 1 + lib/foreman_inventory_upload/generators/metadata.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/services/foreman_rh_cloud/cloud_request_forwarder.rb b/app/services/foreman_rh_cloud/cloud_request_forwarder.rb index 68c44705..4975b858 100644 --- a/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +++ b/app/services/foreman_rh_cloud/cloud_request_forwarder.rb @@ -1,4 +1,5 @@ require 'rest-client' +require "#{ForemanRhCloud::Engine.root}/lib/foreman_rh_cloud/version" module ForemanRhCloud class CloudRequestForwarder diff --git a/lib/foreman_inventory_upload/generators/metadata.rb b/lib/foreman_inventory_upload/generators/metadata.rb index 6f5b7242..641643bf 100644 --- a/lib/foreman_inventory_upload/generators/metadata.rb +++ b/lib/foreman_inventory_upload/generators/metadata.rb @@ -1,3 +1,5 @@ +require "#{ForemanRhCloud::Engine.root}/lib/foreman_rh_cloud/version" + module ForemanInventoryUpload module Generators class Metadata