Execution of foreman-rake rh_cloud_inventory:report:generate fails with error Couldn't find Organization without an ID
Issue
-
When executing the
foreman-rake rh_cloud_inventory:report:generatecommand without passing any environment variables, the command fails with the following error:rake aborted! ForemanTasks::TaskError: Task 211f8106-f3c9-4196-91ff-2ae98d92e00f: ActiveRecord::RecordNotFound: Couldn't find Organization without an ID -
It used to execute fine in Red Hat Satellite 6.17 or earlier.
Environment
- Red Hat Satellite 6.18
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.