Skip to content
Snippets Groups Projects
Commit c4c4a5b4 authored by skorpy's avatar skorpy :construction_worker:
Browse files

_modules/prometheus: replace 'expr_form' with 'tgt_type'

parent db3ecf33
Branches
No related tags found
No related merge requests found
Checking pipeline status
def prometheus_targets_for_grain(key):
values = __salt__['mine.get']('*', 'grains.items', expr_form='glob').values()
values = __salt__['mine.get']('*', 'grains.items', tgt_type='glob').values()
return [ remote_grains[key] for remote_grains in sorted(values) if key in remote_grains ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment