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
Fixes #36136 - handle the case where Ansible variable is an array #649
Conversation
@nofaralfasi How did it look before the change? Should we also change how host parameters behave? (the code in host parameters is similar to code of ansible variables, we should probably do some merging between them when we have the time) |
It looked exactly the same before my changes.
AFAIK, the host parameters code is different since we don't have the option to override the parameters using Matchers, as we do with Ansible variables. Correct me if I'm wrong here. |
@nofaralfasi Didnt notice that variables have an option to merge overrides, and the parameters dont. So it should be fine as only a fix in Ansible :) |
We can either use slash as you proposed for editing mode OR we can even add an extra field for each merged value under the first one when in editing mode. That might be visually easier to distinguish if the users want to edit the thing from this page. |
@nofaralfasi |
This PR is for fixing the "TypeError: string.split is not a function" error when accessing ansible variables on a host. I took the opportunity to ask @MariSvirik's opinion regarding the Ansible variables UI. In my opinion, there is room for improvement in terms of how we present the information, as it may not be sufficiently clear. |
How do I reproduce the issue then? I have Foreman + Ansible + Theme plugin and works fine for me. Tried two ansible variables, one
+1, let's not mix it here. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍏 LGTM
it works and fix the issue
Thanks @nofaralfasi |
No description provided.