Description of problem: A generic object class is based on 2 main elemnts: - the class definiton in /automate/generic objects - automate namespace genericObjects It will be very usefull to be able to have an export of a specific generic object which will include the definition and the namespace. And then the ability to import it, this way, we can have a library of generic objects that we can share. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
There is a pattern setup that you can follow based on the work by Brant Evans. See https://github.com/ManageIQ/manageiq/pulls?utf8=%E2%9C%93&q=is%3Apr+author%3Abranic+
fixed in PR: https://github.com/ManageIQ/manageiq/pull/18688
Marking this as verified after testing on 5.11.0.6.20190528170806_83cadf2 Steps of verification: 1) Create a generic object class via UI 2) ssh into appliance 3) navigate to "/var/www/miq/vmdb" 4) Run "mkdir tmp/generic_object_definitions" 5) Run "bin/rake evm:export:generic_object_definitions -- --directory tmp/generic_object_definitions" 6) Verified that the exported yaml file was created with the correct details/properties. 7) Delete the generic object class via the UI 8) Run "bin/rake evm:import:generic_object_definitions -- --source tmp/generic_object_definitions" 9) Verified that the generic object was present in the UI and the details were correct.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:4199