-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
stream
-
None
-
False
-
Proton Refinement Backlog
-
sat-proton
-
None
-
None
-
None
-
None
Currently, inventory reports are saved to /var/lib/foreman/red_hat_inventory/ in both production and dev environments.
Dev environments don't have the proper permissions (and/or that directory does not exist), so reports fail unless you create the directory yourself and set permissions.
I think they were previously saved (in dev) to ./red_hat_inventory.
The issue is that after the recent refactor, the directory is hard-coded here --> https://github.com/theforeman/foreman_rh_cloud/blob/066fa63422e6db67a479beaf6d4a613709287179/lib/foreman_inventory_upload.rb#L7
It should instead rely on Rails.root, which will put it in the right place regardless of environment.