Skip to content

Conversation

@evgeni
Copy link
Member

@evgeni evgeni commented Aug 28, 2023

in #1659 we realized that even tho the user might pass '["something"]' as a string to Ansible, our code will receive ["something"] as an array later, which might have weird consequences when passing the data to Foreman.

This is an attempt to fix it.

evgeni added 3 commits August 28, 2023 08:20
We define the `value` attribute as `raw` as it can have different data
types, which means Ansible will helpfully convert a `"['something']"`
string to an actual array with the entry `'something'`.
However, if the `parameter_type` in Foreman is `string`, we really
should send a string, not an array Ansible converted for us.
@evgeni evgeni force-pushed the parameter-type-normalization branch from 90e9ab0 to f4bea7a Compare August 28, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant