{"action":"created","comment":{"url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/comments/31033285","id":31033285,"diff_hunk":"@@ -0,0 +1,209 @@\n+require 'pathname'\n+require Pathname.new(__FILE__).dirname.dirname.expand_path + 'pacemaker'\n+\n+Puppet::Type.type(:cs_stonith).provide(:pcs, :parent => Puppet::Provider::Pacemaker) do\n+  desc 'A provider for creating fence devices to perform STONITH operations\n+\tshould the cluster find itself in trouble.\n+        Here we manage the creation and deletion of STONITH fence devices\n+        We will accept a hash for what Corosync calls\n+        operations and device_options.  A hash is used instead of constucting a\n+        better model since these values can be almost anything.'\n+\n+  commands :pcs => 'pcs'\n+\n+  defaultfor :operatingsystem => [:fedora, :centos, :redhat]\n+  # given an XML element containing some <nvpair>s, return a hash. Return an\n+  # empty hash if `e` is nil.\n+  def self.nvpairs_to_hash(e)\n+    return {} if e.nil?\n+\n+    hash = {}\n+    e.each_element do |i|\n+      hash[(i.attributes['name'])] = i.attributes['value']\n+    end\n+\n+    hash\n+  end\n+\n+  # given an XML element (a <primitive> from cibadmin), produce a hash suitible\n+  # for creating a new provider instance.\n+  def self.element_to_hash(e)\n+    hash = {\n+      :primitive_type           => e.attributes['type'],\n+      :name                     => e.attributes['id'].to_sym,\n+      :ensure                   => :present,\n+      :provider                 => self.name,\n+      :device_options           => nvpairs_to_hash(e.elements['instance_attributes']),\n+      :operations               => {},\n+      :existing_resource        => :true,\n+      :existing_primitive_type  => e.attributes['type'],\n+      :existing_operations      => {},\n+    }\n+\n+    if ! e.elements['operations'].nil?\n+      e.elements['operations'].each_element do |o|\n+        valids = o.attributes.reject do |k,v| k == 'id' end\n+        if ! valids['role'].nil?\n+          name = valids['name']\n+          name << \":\"\n+          name << valids['role']\n+        else\n+          name = valids['name']\n+        end\n+        hash[:operations][name] = {}\n+        valids.each do |k,v|\n+          hash[:operations][name][k] = v if k != 'name' and k != 'role'\n+        end\n+        hash[:existing_operations] = hash[:operations].dup\n+      end\n+    end\n+    hash\n+  end\n+\n+  def self.instances\n+\n+    block_until_ready\n+\n+    instances = []\n+\n+    cmd = [ command(:pcs), 'cluster', 'cib' ]\n+    raw, status = run_pcs_command(cmd)\n+    doc = REXML::Document.new(raw)\n+\n+    # What does this mean? Is stonith correct?\n+    REXML::XPath.each(doc, '//primitive') do |e|\n+      instances << new(element_to_hash(e))\n+    end\n+    instances\n+  end\n+\n+  # Create just adds our resource to the property_hash and flush will take care\n+  # of actually doing the work.\n+  # The existing_resource is there because pcs does not have a single command that\n+  # updates or create a resource, so we flag the resources with that parameter\n+  def create\n+    @property_hash = {\n+      :name              => @resource[:name],\n+      :ensure            => :present,\n+      :primitive_type    => @resource[:primitive_type],\n+      :existing_resource => :false\n+    }\n+    @property_hash[:device_options] = @resource[:device_options] if ! @resource[:device_options].nil?\n+    @property_hash[:operations] = @resource[:operations] if ! @resource[:operations].nil?\n+  end\n+\n+  # Unlike create we actually immediately delete the item.\n+  def destroy\n+    debug('Removing STONITH fence')\n+    Puppet::Provider::Pacemaker::run_pcs_command([command(:pcs), 'stonith', 'delete', @property_hash[:name]])\n+    @property_hash.clear\n+  end\n+\n+  # Getters that obtains the device_options and operations defined in our primitive\n+  # that have been populated by prefetch or instances (depends on if your using\n+  # puppet resource or not).\n+  def primitive_type\n+    @property_hash[:primitive_type]\n+  end\n+\n+  def device_options\n+    @property_hash[:device_options]\n+  end\n+\n+  def operations\n+    @property_hash[:operations]\n+  end\n+\n+  # Our setters for device_options and operations.  Setters are used when the\n+  # resource already exists so we just update the current value in the\n+  # property_hash and doing this marks it to be flushed.\n+  def fence_type=(should)\n+    @property_hash[:fence_type] = should\n+  end\n+\n+  def device_options=(should)\n+    @property_hash[:device_options] = should\n+  end\n+\n+  def operations=(should)\n+    @property_hash[:operations] = should\n+  end\n+\n+  # Flush is triggered on anything that has been detected as being\n+  # modified in the property_hash.\n+  # It calls several pcs commands to make the resource look like the\n+  # params.\n+  def flush\n+    unless @property_hash.empty?\n+      # The primitive_type variable is used to check if one of the class,\n+      # provider or type has changed\n+      primitive_type = \"#{@property_hash[:primitive_type]}\"\n+\n+      unless @property_hash[:device_options].empty?\n+        device_options = []\n+        @property_hash[:device_options].each_pair do |k,v|\n+          device_options << \"#{k}=#{v}\"\n+        end\n+      end\n+\n+      unless @property_hash[:operations].empty?\n+        operations = []\n+        @property_hash[:operations].each do |o|\n+          op_name = o[0]\n+          operations << \"op\"\n+          if op_name.include? ':'\n+            items = op_name.split(':')\n+            operations << items[0]\n+            operations << \"role=#{items[1]}\"\n+          else\n+            operations << op_name\n+          end\n+          o[1].each_pair do |k,v|\n+            operations << \"#{k}=#{v}\"\n+          end\n+        end\n+      end\n+\n+      # We destroy the resource if it's primitive type has changed\n+      unless @property_hash[:existing_resource] == :false\n+        existing_primitive_type = \"#{@property_hash[:existing_primitive_type]}\"\n+        if existing_primitive_type != primitive_type\n+          debug('Removing fence device')\n+          Puppet::Provider::Pacemaker::run_pcs_command([command(:pcs), 'stonith', 'delete', @property_hash[:name]])\n+          force_reinstall = :true\n+        end\n+      end\n+\n+      if @property_hash[:existing_resource] == :false or force_reinstall == :true\n+        cmd = [ command(:pcs), 'stonith', 'create', \"#{@property_hash[:name]}\" ]\n+        cmd << primitive_type\n+        cmd += device_options unless device_options.nil?\n+        cmd += operations unless operations.nil?\n+        raw, status = Puppet::Provider::Pacemaker::run_pcs_command(cmd)\n+\n+\t# try to remoe the default monitor operation (with 'pcs resource')\n+        if @property_hash[:operations][\"monitor\"].nil?\n+          cmd = [ command(:pcs), 'resource', 'op', 'remove', \"#{@property_hash[:name]}\", 'monitor', 'interval=60s' ]\n+          Puppet::Provider::Pacemaker::run_pcs_command(cmd, false)\n+        end\n+      else\n+        # if there is no operations defined, we ensure that they are not present\n+        if @property_hash[:operations].empty? and not @property_hash[:existing_operations].empty?\n+          @property_hash[:existing_operations].each do |o|\n+            cmd = [ command(:pcs), 'resource', 'op', 'remove', \"#{@property_hash[:name]}\" ]\n+            cmd << \"#{o[0]}\"\n+            o[1].each_pair do |k,v|\n+              cmd << \"#{k}=#{v}\"\n+            end\n+            Puppet::Provider::Pacemaker::run_pcs_command(cmd)\n+          end\n+        end\n+        cmd = [ command(:pcs), 'stonith', 'update', \"#{@property_hash[:name]}\" ]\n+\tcmd << primitive_type","path":"lib/puppet/provider/cs_stonith/pcs.rb","position":202,"original_position":202,"commit_id":"f6d9f0626a2e26239f1edd19ea1fbf39a0d5b0cf","original_commit_id":"f6d9f0626a2e26239f1edd19ea1fbf39a0d5b0cf","user":{"login":"igalic","id":497249,"avatar_url":"https://avatars.githubusercontent.com/u/497249?v=3","gravatar_id":"","url":"https://api.github.com/users/igalic","html_url":"https://github.com/igalic","followers_url":"https://api.github.com/users/igalic/followers","following_url":"https://api.github.com/users/igalic/following{/other_user}","gists_url":"https://api.github.com/users/igalic/gists{/gist_id}","starred_url":"https://api.github.com/users/igalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igalic/subscriptions","organizations_url":"https://api.github.com/users/igalic/orgs","repos_url":"https://api.github.com/users/igalic/repos","events_url":"https://api.github.com/users/igalic/events{/privacy}","received_events_url":"https://api.github.com/users/igalic/received_events","type":"User","site_admin":false},"body":"indentation","created_at":"2015-05-26T13:40:02Z","updated_at":"2015-05-26T13:40:02Z","html_url":"https://github.com/puppet-community/puppet-corosync/pull/136#discussion_r31033285","pull_request_url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/comments/31033285"},"html":{"href":"https://github.com/puppet-community/puppet-corosync/pull/136#discussion_r31033285"},"pull_request":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136","id":35772896,"html_url":"https://github.com/puppet-community/puppet-corosync/pull/136","diff_url":"https://github.com/puppet-community/puppet-corosync/pull/136.diff","patch_url":"https://github.com/puppet-community/puppet-corosync/pull/136.patch","issue_url":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/136","number":136,"state":"open","locked":false,"title":"Extending cs_location, adding rsc_defaults and stonith capabilities for pcs","user":{"login":"gavmain","id":11445327,"avatar_url":"https://avatars.githubusercontent.com/u/11445327?v=3","gravatar_id":"","url":"https://api.github.com/users/gavmain","html_url":"https://github.com/gavmain","followers_url":"https://api.github.com/users/gavmain/followers","following_url":"https://api.github.com/users/gavmain/following{/other_user}","gists_url":"https://api.github.com/users/gavmain/gists{/gist_id}","starred_url":"https://api.github.com/users/gavmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavmain/subscriptions","organizations_url":"https://api.github.com/users/gavmain/orgs","repos_url":"https://api.github.com/users/gavmain/repos","events_url":"https://api.github.com/users/gavmain/events{/privacy}","received_events_url":"https://api.github.com/users/gavmain/received_events","type":"User","site_admin":false},"body":"I have made some enhancements for pcs and made some minor bug fixes.\r\n\r\nI have kicked the tyres on a RHEL 6.5 box and now happy to see these changes rolled into the mainline puppet-corosync module.\r\nHappy to discuss my changes and open to understanding how to create testing for these changes.\r\n\r\n","created_at":"2015-05-19T20:46:12Z","updated_at":"2015-05-26T13:40:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30082e68190017182b9833881313c26aa1ed285f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136/commits","review_comments_url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136/comments","review_comment_url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/136/comments","statuses_url":"https://api.github.com/repos/puppet-community/puppet-corosync/statuses/f6d9f0626a2e26239f1edd19ea1fbf39a0d5b0cf","head":{"label":"gavmain:master","ref":"master","sha":"f6d9f0626a2e26239f1edd19ea1fbf39a0d5b0cf","user":{"login":"gavmain","id":11445327,"avatar_url":"https://avatars.githubusercontent.com/u/11445327?v=3","gravatar_id":"","url":"https://api.github.com/users/gavmain","html_url":"https://github.com/gavmain","followers_url":"https://api.github.com/users/gavmain/followers","following_url":"https://api.github.com/users/gavmain/following{/other_user}","gists_url":"https://api.github.com/users/gavmain/gists{/gist_id}","starred_url":"https://api.github.com/users/gavmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavmain/subscriptions","organizations_url":"https://api.github.com/users/gavmain/orgs","repos_url":"https://api.github.com/users/gavmain/repos","events_url":"https://api.github.com/users/gavmain/events{/privacy}","received_events_url":"https://api.github.com/users/gavmain/received_events","type":"User","site_admin":false},"repo":{"id":32092173,"name":"puppetlabs-corosync","full_name":"gavmain/puppetlabs-corosync","owner":{"login":"gavmain","id":11445327,"avatar_url":"https://avatars.githubusercontent.com/u/11445327?v=3","gravatar_id":"","url":"https://api.github.com/users/gavmain","html_url":"https://github.com/gavmain","followers_url":"https://api.github.com/users/gavmain/followers","following_url":"https://api.github.com/users/gavmain/following{/other_user}","gists_url":"https://api.github.com/users/gavmain/gists{/gist_id}","starred_url":"https://api.github.com/users/gavmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavmain/subscriptions","organizations_url":"https://api.github.com/users/gavmain/orgs","repos_url":"https://api.github.com/users/gavmain/repos","events_url":"https://api.github.com/users/gavmain/events{/privacy}","received_events_url":"https://api.github.com/users/gavmain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gavmain/puppetlabs-corosync","description":"Sets up and manages Corosync.","fork":true,"url":"https://api.github.com/repos/gavmain/puppetlabs-corosync","forks_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/forks","keys_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/teams","hooks_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/hooks","issue_events_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/issues/events{/number}","events_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/events","assignees_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/assignees{/user}","branches_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/branches{/branch}","tags_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/tags","blobs_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/git/refs{/sha}","trees_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/statuses/{sha}","languages_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/languages","stargazers_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/stargazers","contributors_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/contributors","subscribers_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/subscribers","subscription_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/subscription","commits_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/commits{/sha}","git_commits_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/git/commits{/sha}","comments_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/comments{/number}","issue_comment_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/issues/comments{/number}","contents_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/contents/{+path}","compare_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/merges","archive_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/downloads","issues_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/issues{/number}","pulls_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/pulls{/number}","milestones_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/milestones{/number}","notifications_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/labels{/name}","releases_url":"https://api.github.com/repos/gavmain/puppetlabs-corosync/releases{/id}","created_at":"2015-03-12T17:46:54Z","updated_at":"2015-04-30T17:16:55Z","pushed_at":"2015-05-24T21:16:51Z","git_url":"git://github.com/gavmain/puppetlabs-corosync.git","ssh_url":"git@github.com:gavmain/puppetlabs-corosync.git","clone_url":"https://github.com/gavmain/puppetlabs-corosync.git","svn_url":"https://github.com/gavmain/puppetlabs-corosync","homepage":"http://forge.puppetlabs.com/puppetlabs/corosync","size":376,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"puppet-community:master","ref":"master","sha":"8d725aea7a9d91d861929851a9da8da1e3519b21","user":{"login":"puppet-community","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/puppet-community","html_url":"https://github.com/puppet-community","followers_url":"https://api.github.com/users/puppet-community/followers","following_url":"https://api.github.com/users/puppet-community/following{/other_user}","gists_url":"https://api.github.com/users/puppet-community/gists{/gist_id}","starred_url":"https://api.github.com/users/puppet-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppet-community/subscriptions","organizations_url":"https://api.github.com/users/puppet-community/orgs","repos_url":"https://api.github.com/users/puppet-community/repos","events_url":"https://api.github.com/users/puppet-community/events{/privacy}","received_events_url":"https://api.github.com/users/puppet-community/received_events","type":"Organization","site_admin":false},"repo":{"id":3723449,"name":"puppet-corosync","full_name":"puppet-community/puppet-corosync","owner":{"login":"puppet-community","id":8693967,"avatar_url":"https://avatars.githubusercontent.com/u/8693967?v=3","gravatar_id":"","url":"https://api.github.com/users/puppet-community","html_url":"https://github.com/puppet-community","followers_url":"https://api.github.com/users/puppet-community/followers","following_url":"https://api.github.com/users/puppet-community/following{/other_user}","gists_url":"https://api.github.com/users/puppet-community/gists{/gist_id}","starred_url":"https://api.github.com/users/puppet-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppet-community/subscriptions","organizations_url":"https://api.github.com/users/puppet-community/orgs","repos_url":"https://api.github.com/users/puppet-community/repos","events_url":"https://api.github.com/users/puppet-community/events{/privacy}","received_events_url":"https://api.github.com/users/puppet-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppet-community/puppet-corosync","description":"Sets up and manages Corosync.","fork":false,"url":"https://api.github.com/repos/puppet-community/puppet-corosync","forks_url":"https://api.github.com/repos/puppet-community/puppet-corosync/forks","keys_url":"https://api.github.com/repos/puppet-community/puppet-corosync/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppet-community/puppet-corosync/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppet-community/puppet-corosync/teams","hooks_url":"https://api.github.com/repos/puppet-community/puppet-corosync/hooks","issue_events_url":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/events{/number}","events_url":"https://api.github.com/repos/puppet-community/puppet-corosync/events","assignees_url":"https://api.github.com/repos/puppet-community/puppet-corosync/assignees{/user}","branches_url":"https://api.github.com/repos/puppet-community/puppet-corosync/branches{/branch}","tags_url":"https://api.github.com/repos/puppet-community/puppet-corosync/tags","blobs_url":"https://api.github.com/repos/puppet-community/puppet-corosync/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppet-community/puppet-corosync/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppet-community/puppet-corosync/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppet-community/puppet-corosync/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppet-community/puppet-corosync/statuses/{sha}","languages_url":"https://api.github.com/repos/puppet-community/puppet-corosync/languages","stargazers_url":"https://api.github.com/repos/puppet-community/puppet-corosync/stargazers","contributors_url":"https://api.github.com/repos/puppet-community/puppet-corosync/contributors","subscribers_url":"https://api.github.com/repos/puppet-community/puppet-corosync/subscribers","subscription_url":"https://api.github.com/repos/puppet-community/puppet-corosync/subscription","commits_url":"https://api.github.com/repos/puppet-community/puppet-corosync/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppet-community/puppet-corosync/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppet-community/puppet-corosync/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppet-community/puppet-corosync/contents/{+path}","compare_url":"https://api.github.com/repos/puppet-community/puppet-corosync/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppet-community/puppet-corosync/merges","archive_url":"https://api.github.com/repos/puppet-community/puppet-corosync/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppet-community/puppet-corosync/downloads","issues_url":"https://api.github.com/repos/puppet-community/puppet-corosync/issues{/number}","pulls_url":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls{/number}","milestones_url":"https://api.github.com/repos/puppet-community/puppet-corosync/milestones{/number}","notifications_url":"https://api.github.com/repos/puppet-community/puppet-corosync/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppet-community/puppet-corosync/labels{/name}","releases_url":"https://api.github.com/repos/puppet-community/puppet-corosync/releases{/id}","created_at":"2012-03-14T23:30:40Z","updated_at":"2015-05-21T08:52:42Z","pushed_at":"2015-05-24T21:16:51Z","git_url":"git://github.com/puppet-community/puppet-corosync.git","ssh_url":"git@github.com:puppet-community/puppet-corosync.git","clone_url":"https://github.com/puppet-community/puppet-corosync.git","svn_url":"https://github.com/puppet-community/puppet-corosync","homepage":"http://forge.puppetlabs.com/puppetlabs/corosync","size":1812,"stargazers_count":32,"watchers_count":32,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":22,"forks":99,"open_issues":22,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136"},"html":{"href":"https://github.com/puppet-community/puppet-corosync/pull/136"},"issue":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/136"},"comments":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/puppet-community/puppet-corosync/statuses/f6d9f0626a2e26239f1edd19ea1fbf39a0d5b0cf"}}}}