We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[email protected]
Might be related to #14585 fixxed in https://github.com/ansible/awx/releases/tag/23.4.0
Adding multiple variables to host ends up with given error message.
$body = @{ "variables" = @( "last_seen: $lastseen", "os_version: $os" ) }
iwr -Uri $uri -UseBasicParsing -Headers $header -Body ($body|ConvertTo-Json) -Method PATCH -ContentType "application/json
23.8.1
kubernetes
no
No response
create powershell json body like given push to host api
multiple variables getting added
{"variables":["Not a valid string."]} error message
Workaround works when pushing to api endpoint /api/v2/hosts/id/variables_data directly
The text was updated successfully, but these errors were encountered:
yes, the variable field is a string field. you will need to "stringify" your yaml or json.
Sorry, something went wrong.
No branches or pull requests
Please confirm the following
[email protected]
instead.)Bug Summary
Might be related to #14585 fixxed in https://github.com/ansible/awx/releases/tag/23.4.0
Adding multiple variables to host ends up with given error message.
$body = @{ "variables" = @( "last_seen: $lastseen", "os_version: $os" ) }
iwr -Uri $uri -UseBasicParsing -Headers $header -Body ($body|ConvertTo-Json) -Method PATCH -ContentType "application/json
AWX version
23.8.1
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
create powershell json body like given
push to host api
Expected results
multiple variables getting added
Actual results
{"variables":["Not a valid string."]} error message
Additional information
Workaround works when pushing to api endpoint /api/v2/hosts/id/variables_data directly
The text was updated successfully, but these errors were encountered: