{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/comments/53665959","id":53665959,"diff_hunk":"@@ -294,6 +294,13 @@ def import_image(client, arguments):\n             'Failed to start container: {0}.'.format(str(e)))\n \n     ctx.logger.info('output: {}'.format(output))\n+\n+    # json.loads crashes when trying to import a URL image because\n+    # output have more than one JSON object solution, skip every\n+    # JSON until the result JSON arrives (last one)\n+    lines = output.split('\\n', (output.count('\\n')+1))","path":"docker_plugin/tasks.py","position":8,"original_position":8,"commit_id":"4738f79caea0576fc4dc79487400d530234c09cf","original_commit_id":"8a117ea2bd6116f46620d013f1d8a482647bcbbe","user":{"login":"EarthmanT","id":9653571,"avatar_url":"https://avatars.githubusercontent.com/u/9653571?v=3","gravatar_id":"","url":"https://api.github.com/users/EarthmanT","html_url":"https://github.com/EarthmanT","followers_url":"https://api.github.com/users/EarthmanT/followers","following_url":"https://api.github.com/users/EarthmanT/following{/other_user}","gists_url":"https://api.github.com/users/EarthmanT/gists{/gist_id}","starred_url":"https://api.github.com/users/EarthmanT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EarthmanT/subscriptions","organizations_url":"https://api.github.com/users/EarthmanT/orgs","repos_url":"https://api.github.com/users/EarthmanT/repos","events_url":"https://api.github.com/users/EarthmanT/events{/privacy}","received_events_url":"https://api.github.com/users/EarthmanT/received_events","type":"User","site_admin":false},"body":"it would probably be something like\r\n```\r\ngit rebase -i 1146da3\r\n...pick\r\n...squash\r\n...squash\r\n...squash\r\n...squash\r\ngit push -f\r\n```","created_at":"2016-02-22T18:11:24Z","updated_at":"2016-02-22T18:11:24Z","html_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46#discussion_r53665959","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/comments/53665959"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46#discussion_r53665959"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46","id":59925281,"html_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46","diff_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/46","number":46,"state":"open","locked":false,"title":"Correcting errors when using latest Docker version","user":{"login":"daconstenla","id":1520001,"avatar_url":"https://avatars.githubusercontent.com/u/1520001?v=3","gravatar_id":"","url":"https://api.github.com/users/daconstenla","html_url":"https://github.com/daconstenla","followers_url":"https://api.github.com/users/daconstenla/followers","following_url":"https://api.github.com/users/daconstenla/following{/other_user}","gists_url":"https://api.github.com/users/daconstenla/gists{/gist_id}","starred_url":"https://api.github.com/users/daconstenla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daconstenla/subscriptions","organizations_url":"https://api.github.com/users/daconstenla/orgs","repos_url":"https://api.github.com/users/daconstenla/repos","events_url":"https://api.github.com/users/daconstenla/events{/privacy}","received_events_url":"https://api.github.com/users/daconstenla/received_events","type":"User","site_admin":false},"body":"With latest version of Docker, _Docker version 1.10.1, build 9e83765_, response to **import_image** query contains multiple JSON objects and json.loads only supports one. Skipping every JSON except the last, works as spected.","created_at":"2016-02-19T09:42:07Z","updated_at":"2016-02-22T18:11:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41092cce4ee4aa63a927d2c66c6b90f94f5e86db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/46/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/statuses/4738f79caea0576fc4dc79487400d530234c09cf","head":{"label":"daconstenla:master","ref":"master","sha":"4738f79caea0576fc4dc79487400d530234c09cf","user":{"login":"daconstenla","id":1520001,"avatar_url":"https://avatars.githubusercontent.com/u/1520001?v=3","gravatar_id":"","url":"https://api.github.com/users/daconstenla","html_url":"https://github.com/daconstenla","followers_url":"https://api.github.com/users/daconstenla/followers","following_url":"https://api.github.com/users/daconstenla/following{/other_user}","gists_url":"https://api.github.com/users/daconstenla/gists{/gist_id}","starred_url":"https://api.github.com/users/daconstenla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daconstenla/subscriptions","organizations_url":"https://api.github.com/users/daconstenla/orgs","repos_url":"https://api.github.com/users/daconstenla/repos","events_url":"https://api.github.com/users/daconstenla/events{/privacy}","received_events_url":"https://api.github.com/users/daconstenla/received_events","type":"User","site_admin":false},"repo":{"id":51142490,"name":"cloudify-docker-plugin","full_name":"daconstenla/cloudify-docker-plugin","owner":{"login":"daconstenla","id":1520001,"avatar_url":"https://avatars.githubusercontent.com/u/1520001?v=3","gravatar_id":"","url":"https://api.github.com/users/daconstenla","html_url":"https://github.com/daconstenla","followers_url":"https://api.github.com/users/daconstenla/followers","following_url":"https://api.github.com/users/daconstenla/following{/other_user}","gists_url":"https://api.github.com/users/daconstenla/gists{/gist_id}","starred_url":"https://api.github.com/users/daconstenla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daconstenla/subscriptions","organizations_url":"https://api.github.com/users/daconstenla/orgs","repos_url":"https://api.github.com/users/daconstenla/repos","events_url":"https://api.github.com/users/daconstenla/events{/privacy}","received_events_url":"https://api.github.com/users/daconstenla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daconstenla/cloudify-docker-plugin","description":"A Cloudify plugin for deploying Docker containers","fork":true,"url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin","forks_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/forks","keys_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/teams","hooks_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/hooks","issue_events_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/events","assignees_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/tags","blobs_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/languages","stargazers_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/stargazers","contributors_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/contributors","subscribers_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/subscribers","subscription_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/subscription","commits_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/merges","archive_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/downloads","issues_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/labels{/name}","releases_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/daconstenla/cloudify-docker-plugin/deployments","created_at":"2016-02-05T11:20:02Z","updated_at":"2016-02-05T11:20:03Z","pushed_at":"2016-02-22T16:58:15Z","git_url":"git://github.com/daconstenla/cloudify-docker-plugin.git","ssh_url":"git@github.com:daconstenla/cloudify-docker-plugin.git","clone_url":"https://github.com/daconstenla/cloudify-docker-plugin.git","svn_url":"https://github.com/daconstenla/cloudify-docker-plugin","homepage":null,"size":3284,"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":"master"}},"base":{"label":"cloudify-cosmo:master","ref":"master","sha":"cf043ba1136072df6a19d2ba6e10de95b04e7602","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":23267698,"name":"cloudify-docker-plugin","full_name":"cloudify-cosmo/cloudify-docker-plugin","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin","description":"A Cloudify plugin for deploying Docker containers","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/deployments","created_at":"2014-08-23T22:31:42Z","updated_at":"2016-02-02T20:56:49Z","pushed_at":"2016-02-22T16:58:15Z","git_url":"git://github.com/cloudify-cosmo/cloudify-docker-plugin.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-docker-plugin.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-docker-plugin","homepage":null,"size":3291,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-docker-plugin/pull/46"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/46"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-docker-plugin/statuses/4738f79caea0576fc4dc79487400d530234c09cf"}}}}