payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/BROADSoftware/HADeploy/issues/3","repository_url":"https://api.github.com/repos/BROADSoftware/HADeploy","labels_url":"https://api.github.com/repos/BROADSoftware/HADeploy/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/BROADSoftware/HADeploy/issues/3/comments","events_url":"https://api.github.com/repos/BROADSoftware/HADeploy/issues/3/events","html_url":"https://github.com/BROADSoftware/HADeploy/issues/3","id":504057687,"node_id":"MDU6SXNzdWU1MDQwNTc2ODc=","number":3,"title":"Ranger ","user":{"login":"csebille","id":4729378,"node_id":"MDQ6VXNlcjQ3MjkzNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/4729378?v=4","gravatar_id":"","url":"https://api.github.com/users/csebille","html_url":"https://github.com/csebille","followers_url":"https://api.github.com/users/csebille/followers","following_url":"https://api.github.com/users/csebille/following{/other_user}","gists_url":"https://api.github.com/users/csebille/gists{/gist_id}","starred_url":"https://api.github.com/users/csebille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csebille/subscriptions","organizations_url":"https://api.github.com/users/csebille/orgs","repos_url":"https://api.github.com/users/csebille/repos","events_url":"https://api.github.com/users/csebille/events{/privacy}","received_events_url":"https://api.github.com/users/csebille/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-08T13:51:44Z","updated_at":"2019-10-08T13:51:44Z","closed_at":null,"author_association":"NONE","body":"Hi Serge,\r\n\r\n  I tried to use Ranger policies for Hive from HADeploy :\r\n```\r\nhive_ranger_policies:\r\n- name: mypolicy\r\n  databases: \r\n  - mydatabase\r\n...\r\n```\r\n\r\nbut  infortunately an error is raised : \r\n\r\n\"msg\": \"Invalid returned http code '400' when calling GET on 'http://ranger_host:6080/service/public/v2/api/service/HDPDEV_hive/policy?policyName=HAD[mypolicy]'\r\n\r\nAfter an investigation it appears that the square brackets that surround the policy name break the service.\r\n\r\nAfter having replaced \r\n```\r\nmisc.setDefaultInMap(relay, POLICY_NAME_DECORATOR, 'HAD[{0}]')\r\n```\r\nwith\r\n```\r\nmisc.setDefaultInMap(relay, POLICY_NAME_DECORATOR, '{0}')\r\n```\r\nin \r\nhttps://github.com/BROADSoftware/HADeploy/blob/master/lib/hadeploy/plugins/ranger/code.py\r\n\r\nRanger doesn't complain anymore.\r\n\r\nIs it possible to deactivate/remove the decorator or at least having the capability to override it ? \r\n\r\nContext : HDP 3.1 with Ranger  1.2.0.3.1\r\n\r\nBest regards,\r\nChristophe\r\n"}}
other: {"actor":{"display_login":"csebille"}}