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

Cannot assign instance group on job_template launch command #15728

Open
5 of 11 tasks
monchaio opened this issue Jan 1, 2025 · 0 comments
Open
5 of 11 tasks

Cannot assign instance group on job_template launch command #15728

monchaio opened this issue Jan 1, 2025 · 0 comments

Comments

@monchaio
Copy link

monchaio commented Jan 1, 2025

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.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

I've configured "Prompt on launch" on instance Groups. Everything work fine when I launch job template via UI

However when I tried to specific instance group on launch command.

awx job_template launch <name> \
--instance_groups="4"

I always get below error in return. What is the correct format to specific instance groups on awx cli?

{"instance_groups": ["Expected a list of items but got type \"int\"."]}

AWX version

24.6.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Create new job template and select "Prompt on launch" on instance Groups".

Use awx cli to launch job template and specific instance group ID e.g. 4.

awx job_template launch <name> \
--instance_groups="4"

Expected results

We can submit launch request without issue.

Actual results

Got below error in return.

{"instance_groups": ["Expected a list of items but got type \"int\"."]}

Additional information

No response

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

1 participant