mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d1d4f4bd27
Currently when used with macro contexts that have a colon inside, macro_name gets truncated. A common case is contexts that represent a Windows drive. Examples: - 'C_DRIVE_THRESHOLD: "C:"' - 'C_DRIVE_THRESHOLD: "D:"' This happens because line 189 assumes there are only one colon in macro_name, and thus two substrings to join. To solve this, it is necessary considering that macro_name could have more that one colon. After the split, the first element is the proper Zabbix macro name. Then, the solution is joining all the remaining substrings after that. This is backwards compatible in the case macro_name have only one colon. |
||
---|---|---|
.. | ||
ansible |