Fix search_values function to also allow wildcard matching (e.g. "*pleskwp*")
Closed this issue · 1 comments
janloeffler commented
Fix search_values function to also allow wildcard matching (e.g. "*pleskwp*")
Kubik-Rubik commented
Fixed with ffc0559
All 4 calls are now possible:
OUTPUT='{
"Topics": [
{
"TopicArn": "arn:aws:sns:eu-west-1:699328319947:WordPress-CPU-Alarm"
}
]
}'
search_values "$OUTPUT" "TopicArn" "TopicArn" "arn*"
search_values "$OUTPUT" "TopicArn" "TopicArn" "arn:aws:sns:eu-west-1:699328319947:WordPress-CPU-Alarm"
search_values "$OUTPUT" "TopicArn"
search_values "$OUTPUT" "TopicArn" "TopicArn" "WordPress"