{"action":"created","comment":{"url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/comments/59512738","id":59512738,"diff_hunk":"@@ -5,17 +5,16 @@\n # Copyright (c) 2016 Criteo, All Rights Reserved.\n node['centreon_engine']['repositories'].each do |repo|\n \n-  if node['centreon_engine'][repo]['managed']\n-    yum_repository repo do\n-      baseurl node['centreon_engine'][repo]['baseurl']\n-      cost node['centreon_engine'][repo]['cost']\n-      description node['centreon_engine'][repo]['description']\n-      enabled node['centreon_engine'][repo]['enabled']\n-      gpgcheck node['centreon_engine'][repo]['gpgcheck']\n-      gpgkey node['centreon_engine'][repo]['gpgkey']\n-      repositoryid node['centreon_engine'][repo]['repositoryid']\n+  yum_repository repo do\n+    baseurl node['centreon_engine'][repo]['baseurl']\n+    cost node['centreon_engine'][repo]['cost']\n+    description node['centreon_engine'][repo]['description']\n+    enabled node['centreon_engine'][repo]['enabled']\n+    gpgcheck node['centreon_engine'][repo]['gpgcheck']\n+    gpgkey node['centreon_engine'][repo]['gpgkey']\n+    repositoryid node['centreon_engine'][repo]['repositoryid']\n \n-      action :create\n-    end\n+    action :create\n+    only_if { node['centreon_engine'][repo]['managed'] == true }","path":"recipes/repo.rb","position":25,"original_position":25,"commit_id":"b3fbe94f73f78e14f8c7abd13a6f8857f06e6026","original_commit_id":"b3fbe94f73f78e14f8c7abd13a6f8857f06e6026","user":{"login":"kamaradclimber","id":503537,"avatar_url":"https://avatars.githubusercontent.com/u/503537?v=3","gravatar_id":"","url":"https://api.github.com/users/kamaradclimber","html_url":"https://github.com/kamaradclimber","followers_url":"https://api.github.com/users/kamaradclimber/followers","following_url":"https://api.github.com/users/kamaradclimber/following{/other_user}","gists_url":"https://api.github.com/users/kamaradclimber/gists{/gist_id}","starred_url":"https://api.github.com/users/kamaradclimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamaradclimber/subscriptions","organizations_url":"https://api.github.com/users/kamaradclimber/orgs","repos_url":"https://api.github.com/users/kamaradclimber/repos","events_url":"https://api.github.com/users/kamaradclimber/events{/privacy}","received_events_url":"https://api.github.com/users/kamaradclimber/received_events","type":"User","site_admin":false},"body":"you don't have to test for equality with true:\r\n```\r\nonly_if { node['centreon_engine'][repo]['managed'] }\r\n```","created_at":"2016-04-13T08:46:04Z","updated_at":"2016-04-13T08:46:04Z","html_url":"https://github.com/criteo-cookbooks/centreon-engine/pull/3#discussion_r59512738","pull_request_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/comments/59512738"},"html":{"href":"https://github.com/criteo-cookbooks/centreon-engine/pull/3#discussion_r59512738"},"pull_request":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3","id":66212371,"html_url":"https://github.com/criteo-cookbooks/centreon-engine/pull/3","diff_url":"https://github.com/criteo-cookbooks/centreon-engine/pull/3.diff","patch_url":"https://github.com/criteo-cookbooks/centreon-engine/pull/3.patch","issue_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/3","number":3,"state":"open","locked":false,"title":"Add lint compliance","user":{"login":"CharlesJUDITH","id":953960,"avatar_url":"https://avatars.githubusercontent.com/u/953960?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesJUDITH","html_url":"https://github.com/CharlesJUDITH","followers_url":"https://api.github.com/users/CharlesJUDITH/followers","following_url":"https://api.github.com/users/CharlesJUDITH/following{/other_user}","gists_url":"https://api.github.com/users/CharlesJUDITH/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesJUDITH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesJUDITH/subscriptions","organizations_url":"https://api.github.com/users/CharlesJUDITH/orgs","repos_url":"https://api.github.com/users/CharlesJUDITH/repos","events_url":"https://api.github.com/users/CharlesJUDITH/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesJUDITH/received_events","type":"User","site_admin":false},"body":"This PR will add lint compliance.","created_at":"2016-04-12T19:18:11Z","updated_at":"2016-04-13T08:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b181695caee57f1a397b142fdf916019a9ada77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3/commits","review_comments_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3/comments","review_comment_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/3/comments","statuses_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/statuses/b3fbe94f73f78e14f8c7abd13a6f8857f06e6026","head":{"label":"CharlesJUDITH:master","ref":"master","sha":"b3fbe94f73f78e14f8c7abd13a6f8857f06e6026","user":{"login":"CharlesJUDITH","id":953960,"avatar_url":"https://avatars.githubusercontent.com/u/953960?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesJUDITH","html_url":"https://github.com/CharlesJUDITH","followers_url":"https://api.github.com/users/CharlesJUDITH/followers","following_url":"https://api.github.com/users/CharlesJUDITH/following{/other_user}","gists_url":"https://api.github.com/users/CharlesJUDITH/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesJUDITH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesJUDITH/subscriptions","organizations_url":"https://api.github.com/users/CharlesJUDITH/orgs","repos_url":"https://api.github.com/users/CharlesJUDITH/repos","events_url":"https://api.github.com/users/CharlesJUDITH/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesJUDITH/received_events","type":"User","site_admin":false},"repo":{"id":52988148,"name":"centreon-engine","full_name":"CharlesJUDITH/centreon-engine","owner":{"login":"CharlesJUDITH","id":953960,"avatar_url":"https://avatars.githubusercontent.com/u/953960?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesJUDITH","html_url":"https://github.com/CharlesJUDITH","followers_url":"https://api.github.com/users/CharlesJUDITH/followers","following_url":"https://api.github.com/users/CharlesJUDITH/following{/other_user}","gists_url":"https://api.github.com/users/CharlesJUDITH/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesJUDITH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesJUDITH/subscriptions","organizations_url":"https://api.github.com/users/CharlesJUDITH/orgs","repos_url":"https://api.github.com/users/CharlesJUDITH/repos","events_url":"https://api.github.com/users/CharlesJUDITH/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesJUDITH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CharlesJUDITH/centreon-engine","description":"Install and configure centreon-engine with chef","fork":true,"url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine","forks_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/forks","keys_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/teams","hooks_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/hooks","issue_events_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/issues/events{/number}","events_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/events","assignees_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/assignees{/user}","branches_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/branches{/branch}","tags_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/tags","blobs_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/languages","stargazers_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/stargazers","contributors_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/contributors","subscribers_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/subscribers","subscription_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/subscription","commits_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/contents/{+path}","compare_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/merges","archive_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/downloads","issues_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/issues{/number}","pulls_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/labels{/name}","releases_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/releases{/id}","deployments_url":"https://api.github.com/repos/CharlesJUDITH/centreon-engine/deployments","created_at":"2016-03-02T18:58:19Z","updated_at":"2016-03-02T19:02:35Z","pushed_at":"2016-04-12T19:14:57Z","git_url":"git://github.com/CharlesJUDITH/centreon-engine.git","ssh_url":"git@github.com:CharlesJUDITH/centreon-engine.git","clone_url":"https://github.com/CharlesJUDITH/centreon-engine.git","svn_url":"https://github.com/CharlesJUDITH/centreon-engine","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"criteo-cookbooks:master","ref":"master","sha":"d92cbdc925f9ffa2719cc3179a530d6b34d075c4","user":{"login":"criteo-cookbooks","id":4266429,"avatar_url":"https://avatars.githubusercontent.com/u/4266429?v=3","gravatar_id":"","url":"https://api.github.com/users/criteo-cookbooks","html_url":"https://github.com/criteo-cookbooks","followers_url":"https://api.github.com/users/criteo-cookbooks/followers","following_url":"https://api.github.com/users/criteo-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/criteo-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/criteo-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criteo-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/criteo-cookbooks/orgs","repos_url":"https://api.github.com/users/criteo-cookbooks/repos","events_url":"https://api.github.com/users/criteo-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/criteo-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":52964739,"name":"centreon-engine","full_name":"criteo-cookbooks/centreon-engine","owner":{"login":"criteo-cookbooks","id":4266429,"avatar_url":"https://avatars.githubusercontent.com/u/4266429?v=3","gravatar_id":"","url":"https://api.github.com/users/criteo-cookbooks","html_url":"https://github.com/criteo-cookbooks","followers_url":"https://api.github.com/users/criteo-cookbooks/followers","following_url":"https://api.github.com/users/criteo-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/criteo-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/criteo-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criteo-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/criteo-cookbooks/orgs","repos_url":"https://api.github.com/users/criteo-cookbooks/repos","events_url":"https://api.github.com/users/criteo-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/criteo-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/criteo-cookbooks/centreon-engine","description":"Install and configure centreon-engine with chef","fork":false,"url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine","forks_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/forks","keys_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/teams","hooks_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/hooks","issue_events_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/events{/number}","events_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/events","assignees_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/assignees{/user}","branches_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/branches{/branch}","tags_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/tags","blobs_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/languages","stargazers_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/stargazers","contributors_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/contributors","subscribers_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/subscribers","subscription_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/subscription","commits_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/contents/{+path}","compare_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/merges","archive_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/downloads","issues_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues{/number}","pulls_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/labels{/name}","releases_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/releases{/id}","deployments_url":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/deployments","created_at":"2016-03-02T13:28:08Z","updated_at":"2016-03-04T08:15:29Z","pushed_at":"2016-04-12T19:18:11Z","git_url":"git://github.com/criteo-cookbooks/centreon-engine.git","ssh_url":"git@github.com:criteo-cookbooks/centreon-engine.git","clone_url":"https://github.com/criteo-cookbooks/centreon-engine.git","svn_url":"https://github.com/criteo-cookbooks/centreon-engine","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3"},"html":{"href":"https://github.com/criteo-cookbooks/centreon-engine/pull/3"},"issue":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/3"},"comments":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/criteo-cookbooks/centreon-engine/statuses/b3fbe94f73f78e14f8c7abd13a6f8857f06e6026"}}}}