{"action":"created","issue":{"url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/32","labels_url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/32/comments","events_url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/32/events","html_url":"https://github.com/bbaugher/apache_zookeeper/issues/32","id":110556591,"number":32,"title":"Updating server attributes in roles fails","user":{"login":"Sagarsaurus","id":2731904,"avatar_url":"https://avatars.githubusercontent.com/u/2731904?v=3","gravatar_id":"","url":"https://api.github.com/users/Sagarsaurus","html_url":"https://github.com/Sagarsaurus","followers_url":"https://api.github.com/users/Sagarsaurus/followers","following_url":"https://api.github.com/users/Sagarsaurus/following{/other_user}","gists_url":"https://api.github.com/users/Sagarsaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/Sagarsaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sagarsaurus/subscriptions","organizations_url":"https://api.github.com/users/Sagarsaurus/orgs","repos_url":"https://api.github.com/users/Sagarsaurus/repos","events_url":"https://api.github.com/users/Sagarsaurus/events{/privacy}","received_events_url":"https://api.github.com/users/Sagarsaurus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T22:46:42Z","updated_at":"2015-10-09T11:08:18Z","closed_at":null,"body":"When trying to override attributes for zookeeper config in a role, a string which should pass the regex fails.  \r\n\r\n```json\r\noverride_attributes(\r\n                \"zookeeper\" => {\r\n                        \"zoo.cfg\" => {\r\n                                'server.1' => 'zk01.wdc.bluekai.com:2888:3888'\r\n                        }\r\n                }\r\n)\r\n```\r\nThis should not fail but it does because apparently 'server.1' doesn't pass the required regex.  Somehow, 'server.[1]' does.\r\n"},"comment":{"url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/comments/146835207","html_url":"https://github.com/bbaugher/apache_zookeeper/issues/32#issuecomment-146835207","issue_url":"https://api.github.com/repos/bbaugher/apache_zookeeper/issues/32","id":146835207,"user":{"login":"bbaugher","id":2530095,"avatar_url":"https://avatars.githubusercontent.com/u/2530095?v=3","gravatar_id":"","url":"https://api.github.com/users/bbaugher","html_url":"https://github.com/bbaugher","followers_url":"https://api.github.com/users/bbaugher/followers","following_url":"https://api.github.com/users/bbaugher/following{/other_user}","gists_url":"https://api.github.com/users/bbaugher/gists{/gist_id}","starred_url":"https://api.github.com/users/bbaugher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbaugher/subscriptions","organizations_url":"https://api.github.com/users/bbaugher/orgs","repos_url":"https://api.github.com/users/bbaugher/repos","events_url":"https://api.github.com/users/bbaugher/events{/privacy}","received_events_url":"https://api.github.com/users/bbaugher/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T11:08:18Z","updated_at":"2015-10-09T11:08:18Z","body":"I looked at the regex `\\Aserver.\\d+\\z` for picking the server.X config values. Not quite sure how `server.[1]` works for you. I did notice it should be `\\Aserver\\.\\d+\\z` as `servera1` works. The next part that could fail is if `zk01.wdc.bluekai.com` doesn't match any identities of the node.\r\n\r\nI tried this setup with test-kitchen and didn't have any problems with `server.1`.\r\n\r\nWhat error did you see?"}}