You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After fixing the issues with nested lists of dictionaries in #168 now the issue is happening with just general attributes of dictionaries, when it fails seems random. One specific case I found is if a hostname in an inventory has a - in the name.
Reproduce steps
Create a task or an inventory file. Example the last line backup is not highlighted but it is if you move it up a line
- name: Point repos to local mirror on {{ inventory_hostname }}become: yestemplate:
src: templates/sources.list.j2dest: /etc/apt/sources.listowner: rootgroup: rootmode: "u=rw,g=r,o=r"backup: yes
Expected Results
Everything is highlighted if backup isn't the last line
Everything is highlighted
Actual Results
The text was updated successfully, but these errors were encountered:
the first case could be fixed by PR #182 , it's due to matching attributes aggressive end. While the second case is actually caused by the - in variable name, quick workaround is remote it, host-name to hostname. Fixing of it will need touch base syntax regex expression of ansible, it need be careful, and verbose testing.
Environment
Summary
After fixing the issues with nested lists of dictionaries in #168 now the issue is happening with just general attributes of dictionaries, when it fails seems random. One specific case I found is if a hostname in an inventory has a - in the name.
Reproduce steps
Create a task or an inventory file. Example the last line
backup
is not highlighted but it is if you move it up a lineExpected Results
Everything is highlighted if backup isn't the last line
Everything is highlighted
Actual Results
The text was updated successfully, but these errors were encountered: