rundeck-plugins / attribute-match-node-enhancer

node enhancer plugin to add icons and attributes (experimental)
Apache License 2.0
0 stars 2 forks source link

Attribute Match Node Enhancer not accepting more than 1 line #2

Closed dldrk closed 4 years ago

dldrk commented 4 years ago

Cannot add more than 1 line inside Attributes Match Node Enhancer.

1 from 7 nodes (Node: desktop-rd) has two attributes that should successfully match to add the new attribute to the only mentioned node (Resource Model Attributes: environment="STG" and region="SV").

image

If it's added more than one line in Attribute Matches, the node enhancer will not add the new attribute, in fact, it adds it to other nodes that don't have the environment="STG" and region="SV" attributes. Test below:

image

Also tested with delimiters like commas, space, or newline. None of this working.

To workaround this, create a unique attribute for the node (i.e: region_env="world_dev"). This way it can be added successfully the new attribute to the correct node only. Examples below:

image

image

Expected Behaviour: Working with more than one attribute without creation of mixed/unique attributes or multiple additions of Match Attributes Node Enhancers.