{"action":"created","issue":{"url":"https://api.github.com/repos/Katello/katello/issues/5255","labels_url":"https://api.github.com/repos/Katello/katello/issues/5255/labels{/name}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5255/comments","events_url":"https://api.github.com/repos/Katello/katello/issues/5255/events","html_url":"https://github.com/Katello/katello/pull/5255","id":81613169,"number":5255,"title":"fixes #10459,#10435 - do not create a puppet env for cvs with no modules","user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Katello/katello/labels/Needs%20testing","name":"Needs testing","color":"fbca04"},{"url":"https://api.github.com/repos/Katello/katello/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T20:34:52Z","updated_at":"2015-05-27T20:35:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5255","html_url":"https://github.com/Katello/katello/pull/5255","diff_url":"https://github.com/Katello/katello/pull/5255.diff","patch_url":"https://github.com/Katello/katello/pull/5255.patch"},"body":"during publishing and promotion.  If you are promoting to an environment where there were no puppet modules before (and thus no puppet environment), but now there are, one will be created.  If you are promoting to an environment where there were puppet modules before, but now there are not, the existing environment is NOT deleted, but is cleared out as it is today.\r\n\r\nAlso handles:\r\n  * If a puppet environment has been deleted, and there are no modules\r\n         delete the content view puppet environment\r\n  * If a puppet environment has been deleted and there are modules, recreate it"},"comment":{"url":"https://api.github.com/repos/Katello/katello/issues/comments/106065864","html_url":"https://github.com/Katello/katello/pull/5255#issuecomment-106065864","issue_url":"https://api.github.com/repos/Katello/katello/issues/5255","id":106065864,"user":{"login":"jlsherrill","id":395077,"avatar_url":"https://avatars.githubusercontent.com/u/395077?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsherrill","html_url":"https://github.com/jlsherrill","followers_url":"https://api.github.com/users/jlsherrill/followers","following_url":"https://api.github.com/users/jlsherrill/following{/other_user}","gists_url":"https://api.github.com/users/jlsherrill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsherrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsherrill/subscriptions","organizations_url":"https://api.github.com/users/jlsherrill/orgs","repos_url":"https://api.github.com/users/jlsherrill/repos","events_url":"https://api.github.com/users/jlsherrill/events{/privacy}","received_events_url":"https://api.github.com/users/jlsherrill/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:35:00Z","updated_at":"2015-05-27T20:35:00Z","body":"TODO:  write tests"}}