{"action":"created","issue":{"url":"https://api.github.com/repos/biemond/biemond-orawls/issues/93","labels_url":"https://api.github.com/repos/biemond/biemond-orawls/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/biemond/biemond-orawls/issues/93/comments","events_url":"https://api.github.com/repos/biemond/biemond-orawls/issues/93/events","html_url":"https://github.com/biemond/biemond-orawls/issues/93","id":52533910,"number":93,"title":"wls_group check if group exists","user":{"login":"adamjk-dev","id":4096455,"avatar_url":"https://avatars.githubusercontent.com/u/4096455?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjk-dev","html_url":"https://github.com/adamjk-dev","followers_url":"https://api.github.com/users/adamjk-dev/followers","following_url":"https://api.github.com/users/adamjk-dev/following{/other_user}","gists_url":"https://api.github.com/users/adamjk-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjk-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjk-dev/subscriptions","organizations_url":"https://api.github.com/users/adamjk-dev/orgs","repos_url":"https://api.github.com/users/adamjk-dev/repos","events_url":"https://api.github.com/users/adamjk-dev/events{/privacy}","received_events_url":"https://api.github.com/users/adamjk-dev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biemond/biemond-orawls/labels/waiting+for+more+info","name":"waiting for more info","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-12-19T22:04:25Z","updated_at":"2015-01-09T20:34:10Z","closed_at":"2014-12-29T14:34:19Z","body":"Can you update the wls_group provider to check to see if the group already exists? \r\n\r\nI think all you need to do is change: \r\n<code>\r\natnr.createGroup(name,description)\r\n</code>\r\nto:\r\n<code>\r\nif not atnr.groupExists(name):atnr.createGroup(name,description)\r\n</code>\r\n\r\nIt will add the group and add users to it if it doesn't exist. Otherwise, It will just add the users to the existing group.\r\n\r\nLooks like in this file:\r\nhttps://github.com/biemond/biemond-orawls/blob/master/files/providers/wls_group/create.py.erb"},"comment":{"url":"https://api.github.com/repos/biemond/biemond-orawls/issues/comments/69394656","html_url":"https://github.com/biemond/biemond-orawls/issues/93#issuecomment-69394656","issue_url":"https://api.github.com/repos/biemond/biemond-orawls/issues/93","id":69394656,"user":{"login":"biemond","id":1085004,"avatar_url":"https://avatars.githubusercontent.com/u/1085004?v=3","gravatar_id":"","url":"https://api.github.com/users/biemond","html_url":"https://github.com/biemond","followers_url":"https://api.github.com/users/biemond/followers","following_url":"https://api.github.com/users/biemond/following{/other_user}","gists_url":"https://api.github.com/users/biemond/gists{/gist_id}","starred_url":"https://api.github.com/users/biemond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biemond/subscriptions","organizations_url":"https://api.github.com/users/biemond/orgs","repos_url":"https://api.github.com/users/biemond/repos","events_url":"https://api.github.com/users/biemond/events{/privacy}","received_events_url":"https://api.github.com/users/biemond/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T20:34:10Z","updated_at":"2015-01-09T20:34:10Z","body":"Hi,\r\n\r\nI will never do that because you should not be in that situation, There is probably an error or misconfiguration. I think the group index py script crashes and this will occur in every puppet run but you don't see it.\r\n\r\nSo this is not a fix , but some workaround you won't want.\r\n\r\n"}}