[ 
https://issues.apache.org/jira/browse/AMBARI-18403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15494279#comment-15494279
 ] 

Hudson commented on AMBARI-18403:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #5677 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/5677/])
AMBARI-18403 - YAML Maps Can Include Dashes and Other Non-Word (jhurley: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=edf1b9b9f2182de2e14a194c5ca243f6cf39170d])
* (edit) ambari-server/src/test/python/TestYAMLUtils.py
* (edit) ambari-common/src/main/python/ambari_commons/yaml_utils.py


> YAML Maps Can Include Dashes and Other Non-Word Characters
> ----------------------------------------------------------
>
>                 Key: AMBARI-18403
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18403
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.4.2
>
>         Attachments: AMBARI-18403.patch
>
>
> AMBARI-18366 introduced a pattern to match in when converting properties to 
> YAML which looks for Maps of Maps. Example:
> {noformat}
> foo : 
>   bar : 
>     [baz]
>   foobar :
>     [biz]
> {noformat}
> However, this does not take into account non-word characters such as dashes. 
> The regex should be revised to look for specific markers for the 
> map-within-a-map, allowing for non-space characters as keys. The following 
> should pass:
> {noformat}
> storm-cluster  :  
>   hosts:
>     [c6401.ambari.apache.org, c6402.ambari.apache.org, 
> c6403-master.ambari.apache.org]
>   groups:
>     [hadoop, hadoop-secure]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to