{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments/47263026","id":47263026,"diff_hunk":"@@ -0,0 +1,122 @@\n+\"\"\"\n+ Copyright 2015 Red Hat, Inc.\n+\n+ This file is part of Atomic App.\n+\n+ Atomic App is free software: you can redistribute it and/or modify\n+ it under the terms of the GNU Lesser General Public License as published by\n+ the Free Software Foundation, either version 3 of the License, or\n+ (at your option) any later version.\n+\n+ Atomic App is distributed in the hope that it will be useful,\n+ but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ GNU Lesser General Public License for more details.\n+\n+ You should have received a copy of the GNU Lesser General Public License\n+ along with Atomic App. If not, see <http://www.gnu.org/licenses/>.\n+\"\"\"\n+\n+import anymarkup\n+import requests\n+import urlparse\n+import logging\n+import os\n+from atomicapp.plugin import Provider, ProviderFailedException\n+from atomicapp.utils import printErrorStatus\n+from atomicapp.constants import PROVIDER_API_KEY\n+\n+logger = logging.getLogger(__name__)\n+\n+\n+class Marathon(Provider):\n+    \"\"\" Marathon provider\n+    \"\"\"\n+\n+    key = \"marathon\"\n+    config_file = None\n+    marathon_api_version = \"v2\"\n+    # use localhost as default, when no providerurl is specified\n+    marathon_api = \"http://localhost:8080/%s/\" % marathon_api_version\n+    marathon_artifacts = []\n+\n+    def init(self):\n+        self.marathon_artifacts = []\n+\n+        logger.debug(\"Given config: %s\", self.config)\n+        if self.config.get(PROVIDER_API_KEY):","path":"atomicapp/providers/marathon.py","position":47,"original_position":47,"commit_id":"689cb6252eac7428afacd602d471d74a8dcff503","original_commit_id":"689cb6252eac7428afacd602d471d74a8dcff503","user":{"login":"cdrage","id":6422176,"avatar_url":"https://avatars.githubusercontent.com/u/6422176?v=3","gravatar_id":"","url":"https://api.github.com/users/cdrage","html_url":"https://github.com/cdrage","followers_url":"https://api.github.com/users/cdrage/followers","following_url":"https://api.github.com/users/cdrage/following{/other_user}","gists_url":"https://api.github.com/users/cdrage/gists{/gist_id}","starred_url":"https://api.github.com/users/cdrage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdrage/subscriptions","organizations_url":"https://api.github.com/users/cdrage/orgs","repos_url":"https://api.github.com/users/cdrage/repos","events_url":"https://api.github.com/users/cdrage/events{/privacy}","received_events_url":"https://api.github.com/users/cdrage/received_events","type":"User","site_admin":false},"body":"yup, it does. ","created_at":"2015-12-10T18:20:39Z","updated_at":"2015-12-10T18:20:39Z","html_url":"https://github.com/projectatomic/atomicapp/pull/392#discussion_r47263026","pull_request_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments/47263026"},"html":{"href":"https://github.com/projectatomic/atomicapp/pull/392#discussion_r47263026"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392","id":50382401,"html_url":"https://github.com/projectatomic/atomicapp/pull/392","diff_url":"https://github.com/projectatomic/atomicapp/pull/392.diff","patch_url":"https://github.com/projectatomic/atomicapp/pull/392.patch","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/392","number":392,"state":"open","locked":false,"title":"Marathon provider","user":{"login":"kadel","id":57206,"avatar_url":"https://avatars.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"body":"fixes #357 ","created_at":"2015-11-11T13:20:52Z","updated_at":"2015-12-10T18:20:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"146cb28213d98145550afa8ee72eb061a726b817","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392/commits","review_comments_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392/comments","review_comment_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/392/comments","statuses_url":"https://api.github.com/repos/projectatomic/atomicapp/statuses/689cb6252eac7428afacd602d471d74a8dcff503","head":{"label":"kadel:marathon-provider","ref":"marathon-provider","sha":"689cb6252eac7428afacd602d471d74a8dcff503","user":{"login":"kadel","id":57206,"avatar_url":"https://avatars.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"repo":{"id":45037463,"name":"atomicapp","full_name":"kadel/atomicapp","owner":{"login":"kadel","id":57206,"avatar_url":"https://avatars.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadel/atomicapp","description":"This is the reference implementation of the Nulecule container application Specification: Atomic App","fork":true,"url":"https://api.github.com/repos/kadel/atomicapp","forks_url":"https://api.github.com/repos/kadel/atomicapp/forks","keys_url":"https://api.github.com/repos/kadel/atomicapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadel/atomicapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadel/atomicapp/teams","hooks_url":"https://api.github.com/repos/kadel/atomicapp/hooks","issue_events_url":"https://api.github.com/repos/kadel/atomicapp/issues/events{/number}","events_url":"https://api.github.com/repos/kadel/atomicapp/events","assignees_url":"https://api.github.com/repos/kadel/atomicapp/assignees{/user}","branches_url":"https://api.github.com/repos/kadel/atomicapp/branches{/branch}","tags_url":"https://api.github.com/repos/kadel/atomicapp/tags","blobs_url":"https://api.github.com/repos/kadel/atomicapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadel/atomicapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadel/atomicapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadel/atomicapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadel/atomicapp/statuses/{sha}","languages_url":"https://api.github.com/repos/kadel/atomicapp/languages","stargazers_url":"https://api.github.com/repos/kadel/atomicapp/stargazers","contributors_url":"https://api.github.com/repos/kadel/atomicapp/contributors","subscribers_url":"https://api.github.com/repos/kadel/atomicapp/subscribers","subscription_url":"https://api.github.com/repos/kadel/atomicapp/subscription","commits_url":"https://api.github.com/repos/kadel/atomicapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadel/atomicapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadel/atomicapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadel/atomicapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadel/atomicapp/contents/{+path}","compare_url":"https://api.github.com/repos/kadel/atomicapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadel/atomicapp/merges","archive_url":"https://api.github.com/repos/kadel/atomicapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadel/atomicapp/downloads","issues_url":"https://api.github.com/repos/kadel/atomicapp/issues{/number}","pulls_url":"https://api.github.com/repos/kadel/atomicapp/pulls{/number}","milestones_url":"https://api.github.com/repos/kadel/atomicapp/milestones{/number}","notifications_url":"https://api.github.com/repos/kadel/atomicapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadel/atomicapp/labels{/name}","releases_url":"https://api.github.com/repos/kadel/atomicapp/releases{/id}","created_at":"2015-10-27T11:48:20Z","updated_at":"2015-10-27T11:48:21Z","pushed_at":"2015-12-10T15:25:18Z","git_url":"git://github.com/kadel/atomicapp.git","ssh_url":"git@github.com:kadel/atomicapp.git","clone_url":"https://github.com/kadel/atomicapp.git","svn_url":"https://github.com/kadel/atomicapp","homepage":"","size":664,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"e35080e5a6885fd8eee4c4df0f211fb81b13f2fb","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":32819266,"name":"atomicapp","full_name":"projectatomic/atomicapp","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/atomicapp","description":"This is the reference implementation of the Nulecule container application Specification: Atomic App","fork":false,"url":"https://api.github.com/repos/projectatomic/atomicapp","forks_url":"https://api.github.com/repos/projectatomic/atomicapp/forks","keys_url":"https://api.github.com/repos/projectatomic/atomicapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/atomicapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/atomicapp/teams","hooks_url":"https://api.github.com/repos/projectatomic/atomicapp/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/atomicapp/events","assignees_url":"https://api.github.com/repos/projectatomic/atomicapp/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/atomicapp/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/atomicapp/tags","blobs_url":"https://api.github.com/repos/projectatomic/atomicapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/atomicapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/atomicapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/atomicapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/atomicapp/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/atomicapp/languages","stargazers_url":"https://api.github.com/repos/projectatomic/atomicapp/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/atomicapp/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/atomicapp/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/atomicapp/subscription","commits_url":"https://api.github.com/repos/projectatomic/atomicapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/atomicapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/atomicapp/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/atomicapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/atomicapp/merges","archive_url":"https://api.github.com/repos/projectatomic/atomicapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/atomicapp/downloads","issues_url":"https://api.github.com/repos/projectatomic/atomicapp/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/atomicapp/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/atomicapp/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/atomicapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/atomicapp/releases{/id}","created_at":"2015-03-24T19:09:39Z","updated_at":"2015-12-09T21:37:10Z","pushed_at":"2015-12-10T18:19:41Z","git_url":"git://github.com/projectatomic/atomicapp.git","ssh_url":"git@github.com:projectatomic/atomicapp.git","clone_url":"https://github.com/projectatomic/atomicapp.git","svn_url":"https://github.com/projectatomic/atomicapp","homepage":"","size":1376,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":75,"forks":43,"open_issues":75,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392"},"html":{"href":"https://github.com/projectatomic/atomicapp/pull/392"},"issue":{"href":"https://api.github.com/repos/projectatomic/atomicapp/issues/392"},"comments":{"href":"https://api.github.com/repos/projectatomic/atomicapp/issues/392/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/atomicapp/pulls/392/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/atomicapp/statuses/689cb6252eac7428afacd602d471d74a8dcff503"}}}}