Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

templates get confused when variable name == label #62

Closed
synfinatic opened this issue Mar 3, 2018 · 1 comment
Closed

templates get confused when variable name == label #62

synfinatic opened this issue Mar 3, 2018 · 1 comment

Comments

@synfinatic
Copy link

Tried chaining two variables together in the same template:

name: DC
label: DC
custom_options: DC1,DC2,DC3

name: Hosts
type: Query
query: tag_values(hosts.interface.if_octets.rx_rate, host, dc=$DC)

With the above config, $Hosts returns an empty set. However, if you change the label from DC to Datacenter, $Hosts returns the hosts in the corresponding DC.

@jifwin
Copy link
Contributor

jifwin commented Mar 20, 2018

Hi
Thanks for reporting this. Version 3.0.0 is now released. Could you check if the issue still occurs? if so please reopen.

@jifwin jifwin closed this as completed Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants