{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/24896839","id":24896839,"diff_hunk":"@@ -0,0 +1,43 @@\n+#\n+# Copyright 2015, SUSE\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+action :create do\n+  # evil command line; there must be a better way to fetch the list of resources\n+  # unfortunately, \"crm_resource --list-raw\" doesn't list groups/clones\n+  all_resources = %x{crm configure show | grep -vE '^\\s|^node|id=' | cut -d ' ' -f 2}.split(\"\\n\")\n+  existing_ordering = new_resource.ordering.select{ |r| all_resources.include?(r) }","path":"chef/cookbooks/crowbar-pacemaker/providers/order_only_existing.rb","position":null,"original_position":21,"commit_id":"88d2d1e855a24e10b0d1bfa137560e43418100e1","original_commit_id":"a8b52e4ea1c2658fe3eb788b7b784e0624e60b81","user":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","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":"Fixed.","created_at":"2015-02-18T12:12:17Z","updated_at":"2015-02-18T12:12:17Z","html_url":"https://github.com/crowbar/barclamp-pacemaker/pull/179#discussion_r24896839","pull_request_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/24896839"},"html":{"href":"https://github.com/crowbar/barclamp-pacemaker/pull/179#discussion_r24896839"},"pull_request":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179","id":29489604,"html_url":"https://github.com/crowbar/barclamp-pacemaker/pull/179","diff_url":"https://github.com/crowbar/barclamp-pacemaker/pull/179.diff","patch_url":"https://github.com/crowbar/barclamp-pacemaker/pull/179.patch","issue_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/179","number":179,"state":"open","locked":false,"title":"crowbar-pacemaker: Add crowbar_pacemaker_order_only_existing resource","user":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","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":"This is a hack that can be used to create order constraints easily when\r\nsome resources in the ordering might not exist in this cluster.","created_at":"2015-02-17T23:53:02Z","updated_at":"2015-02-18T12:12:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"102d345ba58c13649cc995f401c25398e304ceff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179/commits","review_comments_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179/comments","review_comment_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/{number}","comments_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/179/comments","statuses_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/statuses/88d2d1e855a24e10b0d1bfa137560e43418100e1","head":{"label":"vuntz:order_if_exists","ref":"order_if_exists","sha":"88d2d1e855a24e10b0d1bfa137560e43418100e1","user":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","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},"repo":{"id":17128687,"name":"barclamp-pacemaker","full_name":"vuntz/barclamp-pacemaker","owner":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","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},"private":false,"html_url":"https://github.com/vuntz/barclamp-pacemaker","description":"Barclamp that facilitates provisioning of HA services via Pacemaker","fork":true,"url":"https://api.github.com/repos/vuntz/barclamp-pacemaker","forks_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/forks","keys_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/teams","hooks_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/hooks","issue_events_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/issues/events{/number}","events_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/events","assignees_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/assignees{/user}","branches_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/branches{/branch}","tags_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/tags","blobs_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/statuses/{sha}","languages_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/languages","stargazers_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/stargazers","contributors_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/contributors","subscribers_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/subscribers","subscription_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/subscription","commits_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/issues/comments/{number}","contents_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/contents/{+path}","compare_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/merges","archive_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/downloads","issues_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/issues{/number}","pulls_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/pulls{/number}","milestones_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/milestones{/number}","notifications_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/labels{/name}","releases_url":"https://api.github.com/repos/vuntz/barclamp-pacemaker/releases{/id}","created_at":"2014-02-24T07:34:21Z","updated_at":"2014-06-03T08:15:56Z","pushed_at":"2015-02-18T12:11:58Z","git_url":"git://github.com/vuntz/barclamp-pacemaker.git","ssh_url":"git@github.com:vuntz/barclamp-pacemaker.git","clone_url":"https://github.com/vuntz/barclamp-pacemaker.git","svn_url":"https://github.com/vuntz/barclamp-pacemaker","homepage":"","size":1981,"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":"crowbar:master","ref":"master","sha":"c9088761f6dcc4d08031ae2e27fa124f7dc5c998","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":14967953,"name":"barclamp-pacemaker","full_name":"crowbar/barclamp-pacemaker","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/barclamp-pacemaker","description":"Crowbar Pacemaker: HA Service Provisioning","fork":true,"url":"https://api.github.com/repos/crowbar/barclamp-pacemaker","forks_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/forks","keys_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/teams","hooks_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/hooks","issue_events_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/events","assignees_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/tags","blobs_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/languages","stargazers_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/stargazers","contributors_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/contributors","subscribers_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/subscribers","subscription_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/subscription","commits_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/merges","archive_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/downloads","issues_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/barclamp-pacemaker/releases{/id}","created_at":"2013-12-05T22:49:05Z","updated_at":"2015-02-17T15:01:08Z","pushed_at":"2015-02-17T15:01:08Z","git_url":"git://github.com/crowbar/barclamp-pacemaker.git","ssh_url":"git@github.com:crowbar/barclamp-pacemaker.git","clone_url":"https://github.com/crowbar/barclamp-pacemaker.git","svn_url":"https://github.com/crowbar/barclamp-pacemaker","homepage":"https://github.com/crowbar/crowbar","size":2664,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":9,"forks":35,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179"},"html":{"href":"https://github.com/crowbar/barclamp-pacemaker/pull/179"},"issue":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/179"},"comments":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/barclamp-pacemaker/statuses/88d2d1e855a24e10b0d1bfa137560e43418100e1"}}}}