-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filetree_create does not include extra_data on workflow nodes #893
Comments
The templates were used to write down only the fields that has no default or empty values |
Yes, thanks @ivarmu. Moreover, I was playing with awx.awx.export and it exports objects with a structure that is not 100% compatible with awx.awx. modules. Then, I don't think we can replace export module for templates. |
We could consider if running the |
IMHO, export module will be always more efficient than a plugin. And even more, with export we'll be getting all attributes from a resource. For instance, if a new parameter is added to some object, we'll have that new one automatically exported with the export module, while with templates, we'll need to maintain them "manually". TBH, I expected to have resources exported with export module with same format as rest of modules accept. For instance, this is the adaptation for EE:
And the output would be:
As you can see, for instance the organization parameter inside a EE definition is a dict, while the execution_environment module accepts a string as organization value. We'd need to look over every parameter accepted by object type modules and compare it with the output of export module. And then, adapt them. There may be a easy solution to adapt outputs but it is not coming to my mind right now :( In any case if you thing we should consider to refactor filetree_create, we can open a different issue to discuss it and tackle it. |
Is your feature request related to a problem? Please describe.
filetree_create should export extra_data of workflow nodes
Describe the solution you'd like
Question posed at https://forum.ansible.com/t/filetree-create-does-not-include-extra-data-on-workflow-nodes/7722
Describe alternatives you've considered
We may need to refactor filetree_create to use awx.awx.export/ansible.controller.export to build exported resources instead of export them using ansible templates. Why haven't we used it so far?
cc @ivarmu
The text was updated successfully, but these errors were encountered: