Closed Mapel88 closed 4 years ago
It looks like the values you are requesting are actually lists with a single item, not scalars. That is evident from the '-' next to the returned values. In any case, that is supposed to work by adding each list item as a tag.
I'm afraid I can't accept your patch because your solution assumes that the grain will always be a list, and it will always add only the first item as a tag, rather than all items.
As it happens, I made a few changes to the relevant function earlier this week and I believe that your issue was inadvertently fixed. Could you you please test the script on the develop
branch and let me know if that works for you?
I tested the code in develop branch and now the tags are added properly. Thanks a lot!
This is the command I'm using:
./SaltGenResource.py -a environment,region,roles -t roles,environment,region -G environment:STG
received the following warnings:
Even though they exists and attributes are created properly:
Output after the fix: