Skip to content
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

Add support on survey for object #14848

Open
5 of 9 tasks
tanganellilore opened this issue Feb 6, 2024 · 1 comment
Open
5 of 9 tasks

Add support on survey for object #14848

tanganellilore opened this issue Feb 6, 2024 · 1 comment

Comments

@tanganellilore
Copy link
Contributor

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

Enhancement to Existing Feature

Feature Summary

Hi team,

I have an idea for survey in AWX. Apart dynamic form, i notice that we can assign to Question a variable like key.sub_key and during launch of job this variable is correctly papped in yaml like:

key:
  sub_key: 1

But, if we not have "prompt on launch" in extra_vars, this type of variable is ignored and not passed to job.

If we set "prompt on launch" in extra_vars, the variable is passed to job two times, one in dot version and one in yml version, like:

key.sub_key: 1
key:
  sub_key: 1

Probably is not a "standard" use case, or os better map object in playbook itself, but this can be usefull in certain use case.

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

Create a survey with variable with dot

Current results

If we set "prompt on launch" in extra_vars, the variable is passed to job two times, one in dot versione and one in yml version, like:
if we not have "prompt on launch" in extra_vars, this type of variable is ignored and not passed to job.

Sugested feature result

dot variable passed as a object, and not ignored if extra_vars is not prompted.

If extra_vars is prompted, ignore dot version and use object

Additional information

No response

@fosterseth
Copy link
Member

@AlanCoding might be interested in this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants