{"action":"created","comment":{"url":"https://api.github.com/repos/saltstack/salt/pulls/comments/48502187","id":48502187,"diff_hunk":"@@ -80,6 +80,25 @@ def show_current(name):\n     return False\n \n \n+def check_exists(name, path):\n+    '''\n+    Check if the given path is an alternative for a name.\n+","path":"salt/modules/alternatives.py","position":7,"original_position":7,"commit_id":"aab35b883e88c4c015a37098f8009f832b0549ce","original_commit_id":"ca290ec3e1f695d5098a65972cdd98cb1c97c5c4","user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"body":"Sorry, thanks.  My comment was based on the original pull request and I didn't look over this one very thoroughly. :-)","created_at":"2015-12-28T20:02:03Z","updated_at":"2015-12-28T20:02:03Z","html_url":"https://github.com/saltstack/salt/pull/30038#discussion_r48502187","pull_request_url":"https://api.github.com/repos/saltstack/salt/pulls/30038","_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt/pulls/comments/48502187"},"html":{"href":"https://github.com/saltstack/salt/pull/30038#discussion_r48502187"},"pull_request":{"href":"https://api.github.com/repos/saltstack/salt/pulls/30038"}}},"pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/30038","id":54678008,"html_url":"https://github.com/saltstack/salt/pull/30038","diff_url":"https://github.com/saltstack/salt/pull/30038.diff","patch_url":"https://github.com/saltstack/salt/pull/30038.patch","issue_url":"https://api.github.com/repos/saltstack/salt/issues/30038","number":30038,"state":"open","locked":false,"title":"Back-port #30017 to 2015.8","user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"body":"Back-port #30017 to 2015.8","created_at":"2015-12-28T19:31:50Z","updated_at":"2015-12-28T20:02:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"508b928280f21f493bc7874db5ac470fd0cea7c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saltstack/salt/pulls/30038/commits","review_comments_url":"https://api.github.com/repos/saltstack/salt/pulls/30038/comments","review_comment_url":"https://api.github.com/repos/saltstack/salt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/30038/comments","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/aab35b883e88c4c015a37098f8009f832b0549ce","head":{"label":"rallytime:bp-30017","ref":"bp-30017","sha":"aab35b883e88c4c015a37098f8009f832b0549ce","user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"repo":{"id":16396182,"name":"salt","full_name":"rallytime/salt","owner":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rallytime/salt","description":"Central system and configuration manager ","fork":true,"url":"https://api.github.com/repos/rallytime/salt","forks_url":"https://api.github.com/repos/rallytime/salt/forks","keys_url":"https://api.github.com/repos/rallytime/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rallytime/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rallytime/salt/teams","hooks_url":"https://api.github.com/repos/rallytime/salt/hooks","issue_events_url":"https://api.github.com/repos/rallytime/salt/issues/events{/number}","events_url":"https://api.github.com/repos/rallytime/salt/events","assignees_url":"https://api.github.com/repos/rallytime/salt/assignees{/user}","branches_url":"https://api.github.com/repos/rallytime/salt/branches{/branch}","tags_url":"https://api.github.com/repos/rallytime/salt/tags","blobs_url":"https://api.github.com/repos/rallytime/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rallytime/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rallytime/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rallytime/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rallytime/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/rallytime/salt/languages","stargazers_url":"https://api.github.com/repos/rallytime/salt/stargazers","contributors_url":"https://api.github.com/repos/rallytime/salt/contributors","subscribers_url":"https://api.github.com/repos/rallytime/salt/subscribers","subscription_url":"https://api.github.com/repos/rallytime/salt/subscription","commits_url":"https://api.github.com/repos/rallytime/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rallytime/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rallytime/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rallytime/salt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rallytime/salt/contents/{+path}","compare_url":"https://api.github.com/repos/rallytime/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rallytime/salt/merges","archive_url":"https://api.github.com/repos/rallytime/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rallytime/salt/downloads","issues_url":"https://api.github.com/repos/rallytime/salt/issues{/number}","pulls_url":"https://api.github.com/repos/rallytime/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/rallytime/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/rallytime/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rallytime/salt/labels{/name}","releases_url":"https://api.github.com/repos/rallytime/salt/releases{/id}","created_at":"2014-01-31T00:54:22Z","updated_at":"2015-05-05T15:21:56Z","pushed_at":"2015-12-28T19:33:02Z","git_url":"git://github.com/rallytime/salt.git","ssh_url":"git@github.com:rallytime/salt.git","clone_url":"https://github.com/rallytime/salt.git","svn_url":"https://github.com/rallytime/salt","homepage":"saltstack.org","size":133565,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"develop"}},"base":{"label":"saltstack:2015.8","ref":"2015.8","sha":"e7fe24dc6475b6aa0e8b765ef35a37425ffd8a40","user":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"repo":{"id":1390248,"name":"salt","full_name":"saltstack/salt","owner":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack/salt","description":"Infrastructure automation and management system","fork":false,"url":"https://api.github.com/repos/saltstack/salt","forks_url":"https://api.github.com/repos/saltstack/salt/forks","keys_url":"https://api.github.com/repos/saltstack/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack/salt/teams","hooks_url":"https://api.github.com/repos/saltstack/salt/hooks","issue_events_url":"https://api.github.com/repos/saltstack/salt/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack/salt/events","assignees_url":"https://api.github.com/repos/saltstack/salt/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack/salt/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack/salt/tags","blobs_url":"https://api.github.com/repos/saltstack/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack/salt/languages","stargazers_url":"https://api.github.com/repos/saltstack/salt/stargazers","contributors_url":"https://api.github.com/repos/saltstack/salt/contributors","subscribers_url":"https://api.github.com/repos/saltstack/salt/subscribers","subscription_url":"https://api.github.com/repos/saltstack/salt/subscription","commits_url":"https://api.github.com/repos/saltstack/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack/salt/issues/comments{/number}","contents_url":"https://api.github.com/repos/saltstack/salt/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack/salt/merges","archive_url":"https://api.github.com/repos/saltstack/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack/salt/downloads","issues_url":"https://api.github.com/repos/saltstack/salt/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack/salt/labels{/name}","releases_url":"https://api.github.com/repos/saltstack/salt/releases{/id}","created_at":"2011-02-20T20:16:56Z","updated_at":"2015-12-28T16:17:38Z","pushed_at":"2015-12-28T20:01:17Z","git_url":"git://github.com/saltstack/salt.git","ssh_url":"git@github.com:saltstack/salt.git","clone_url":"https://github.com/saltstack/salt.git","svn_url":"https://github.com/saltstack/salt","homepage":"saltstack.com","size":147931,"stargazers_count":6052,"watchers_count":6052,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2611,"mirror_url":null,"open_issues_count":3265,"forks":2611,"open_issues":3265,"watchers":6052,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt/pulls/30038"},"html":{"href":"https://github.com/saltstack/salt/pull/30038"},"issue":{"href":"https://api.github.com/repos/saltstack/salt/issues/30038"},"comments":{"href":"https://api.github.com/repos/saltstack/salt/issues/30038/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack/salt/pulls/30038/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack/salt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saltstack/salt/pulls/30038/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack/salt/statuses/aab35b883e88c4c015a37098f8009f832b0549ce"}}}}