GitHub PullRequestReviewCommentEvent at 2014-05-22 08:24:38
Repository: barclamp-pacemaker
Actor: vuntz
Payload: {"comment":{"url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/12939503","id":12939503,"diff_hunk":"@@ -96,3 +96,11 @@\n   node[\"provisioner\"][\"access_keys\"] = access_keys.values.join(\"\\n\")\n   node.save\n end\n+\n+if CrowbarPacemakerHelper.is_cluster_founder?\n+  # check for deleted cluster members and clean up after them\n+  Chef::Search::Query.new.search(:node, \"roles:pacemaker-cluster-member_remove AND pacemaker_config_environment:#{node[:pacemaker][:config][:environment]}\") do |n|\n+    ::Kernel.system(\"crm node delete #{n.name}\")","path":"chef/cookbooks/crowbar-pacemaker/recipes/default.rb","position":8,"original_position":8,"commit_id":"0a3ac7a42cb865ffda4920ed598389141a821855","original_commit_id":"6cac8079d40f30ec656aef5b770440a10a4a6972","user":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?","gravatar_id":"d7cc6451b64c4351e27db322d114d4aa","url":"https://api.github.com/users/vuntz","html_url":"https://github.com/vuntz","followers_url":"https://api.github.com/users/vuntz/followers","following_url":"https://api.github.com/users/vuntz/following{/other_user}","gists_url":"https://api.github.com/users/vuntz/gists{/gist_id}","starred_url":"https://api.github.com/users/vuntz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuntz/subscriptions","organizations_url":"https://api.github.com/users/vuntz/orgs","repos_url":"https://api.github.com/users/vuntz/repos","events_url":"https://api.github.com/users/vuntz/events{/privacy}","received_events_url":"https://api.github.com/users/vuntz/received_events","type":"User","site_admin":false},"body":"Thanks for the explanation!","created_at":"2014-05-22T08:24:38Z","updated_at":"2014-05-22T08:24:38Z","html_url":"https://github.com/crowbar/barclamp-pacemaker/pull/100#discussion_r12939503","pull_request_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/12939503"},"html":{"href":"https://github.com/crowbar/barclamp-pacemaker/pull/100#discussion_r12939503"},"pull_request":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/100"}}}}