Doroszlai, Attila commented on AMBARI-21633:

Hi [~simon.heeg],

{{get_tokens()}} should return a tuple.  [Here's an 
 of requesting one configuration parameter:

def get_tokens():
  Returns a tuple of tokens in the format {{site/property}} that will be used
  to build the dictionary passed into execute
  return (FLUME_CONF_DIR_KEY,)

> Ambari alerts not able to pass only one configuration parameter
> ---------------------------------------------------------------
>                 Key: AMBARI-21633
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21633
>             Project: Ambari
>          Issue Type: Bug
>          Components: alerts
>    Affects Versions: 2.4.2
>         Environment: Ubuntu 14.04
>            Reporter: Simon Heeg
>            Priority: Minor
>              Labels: alerts, newbie
> Ambari Alerts will call the *get_tokens():* functions in an alert script to 
> populate the *configurations* dictionary. However, if *get_tokens():* only 
> requests one configuration parameter, the dictionary will look like this:
> {"a": "a", "o": "o", "e": "e", "i": "i", "h": "h", "-": "-", "m": "m", "/": 
> "/", ".": ".", "s": "s", "r": "r", "u": "u", "t": "t", "v": "v"}

This message was sent by Atlassian JIRA

Reply via email to