{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments/27502511","id":27502511,"diff_hunk":"@@ -40,6 +40,8 @@ def desire_app_request(app, default_health_check_timeout)\n         end\n \n         def desire_app_message(app, default_health_check_timeout)\n+          cached_docker_image = app.current_droplet.cached_docker_image if app.current_droplet","path":"lib/cloud_controller/diego/docker/protocol.rb","position":4,"original_position":4,"commit_id":"2b410a3e83150bead17e402909e3c2937d3973b4","original_commit_id":"2b410a3e83150bead17e402909e3c2937d3973b4","user":{"login":"sykesm","id":4517909,"avatar_url":"https://avatars.githubusercontent.com/u/4517909?v=3","gravatar_id":"","url":"https://api.github.com/users/sykesm","html_url":"https://github.com/sykesm","followers_url":"https://api.github.com/users/sykesm/followers","following_url":"https://api.github.com/users/sykesm/following{/other_user}","gists_url":"https://api.github.com/users/sykesm/gists{/gist_id}","starred_url":"https://api.github.com/users/sykesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sykesm/subscriptions","organizations_url":"https://api.github.com/users/sykesm/orgs","repos_url":"https://api.github.com/users/sykesm/repos","events_url":"https://api.github.com/users/sykesm/events{/privacy}","received_events_url":"https://api.github.com/users/sykesm/received_events","type":"User","site_admin":false},"body":"I was able to comment out the `if app.current_droplet` from the code and no tests failed. Looks like you need a test there.","created_at":"2015-03-31T17:34:49Z","updated_at":"2015-03-31T17:34:49Z","html_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350#discussion_r27502511","pull_request_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350","_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments/27502511"},"html":{"href":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350#discussion_r27502511"},"pull_request":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350","id":32299750,"html_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350","diff_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350.diff","patch_url":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350.patch","issue_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/350","number":350,"state":"open","locked":false,"title":"Enable docker image caching","user":{"login":"hsiliev","id":732222,"avatar_url":"https://avatars.githubusercontent.com/u/732222?v=3","gravatar_id":"","url":"https://api.github.com/users/hsiliev","html_url":"https://github.com/hsiliev","followers_url":"https://api.github.com/users/hsiliev/followers","following_url":"https://api.github.com/users/hsiliev/following{/other_user}","gists_url":"https://api.github.com/users/hsiliev/gists{/gist_id}","starred_url":"https://api.github.com/users/hsiliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsiliev/subscriptions","organizations_url":"https://api.github.com/users/hsiliev/orgs","repos_url":"https://api.github.com/users/hsiliev/repos","events_url":"https://api.github.com/users/hsiliev/events{/privacy}","received_events_url":"https://api.github.com/users/hsiliev/received_events","type":"User","site_admin":false},"body":"[#86969440]\r\n\r\nCC will update the docker_image column in apps table if Diego changed the image name during staging in order to cache it.\r\n\r\nSigned-off-by: Georgi Sabev georgethebeatle@gmail.com\r\n","created_at":"2015-03-31T08:17:24Z","updated_at":"2015-03-31T17:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6000cc3db8432ea2f80cdfdea75855d185bc998","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/350/comments","statuses_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/2b410a3e83150bead17e402909e3c2937d3973b4","head":{"label":"hsiliev:master","ref":"master","sha":"2b410a3e83150bead17e402909e3c2937d3973b4","user":{"login":"hsiliev","id":732222,"avatar_url":"https://avatars.githubusercontent.com/u/732222?v=3","gravatar_id":"","url":"https://api.github.com/users/hsiliev","html_url":"https://github.com/hsiliev","followers_url":"https://api.github.com/users/hsiliev/followers","following_url":"https://api.github.com/users/hsiliev/following{/other_user}","gists_url":"https://api.github.com/users/hsiliev/gists{/gist_id}","starred_url":"https://api.github.com/users/hsiliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsiliev/subscriptions","organizations_url":"https://api.github.com/users/hsiliev/orgs","repos_url":"https://api.github.com/users/hsiliev/repos","events_url":"https://api.github.com/users/hsiliev/events{/privacy}","received_events_url":"https://api.github.com/users/hsiliev/received_events","type":"User","site_admin":false},"repo":{"id":33112369,"name":"cloud_controller_ng","full_name":"hsiliev/cloud_controller_ng","owner":{"login":"hsiliev","id":732222,"avatar_url":"https://avatars.githubusercontent.com/u/732222?v=3","gravatar_id":"","url":"https://api.github.com/users/hsiliev","html_url":"https://github.com/hsiliev","followers_url":"https://api.github.com/users/hsiliev/followers","following_url":"https://api.github.com/users/hsiliev/following{/other_user}","gists_url":"https://api.github.com/users/hsiliev/gists{/gist_id}","starred_url":"https://api.github.com/users/hsiliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsiliev/subscriptions","organizations_url":"https://api.github.com/users/hsiliev/orgs","repos_url":"https://api.github.com/users/hsiliev/repos","events_url":"https://api.github.com/users/hsiliev/events{/privacy}","received_events_url":"https://api.github.com/users/hsiliev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsiliev/cloud_controller_ng","description":"","fork":true,"url":"https://api.github.com/repos/hsiliev/cloud_controller_ng","forks_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/forks","keys_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/teams","hooks_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/hooks","issue_events_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/issues/events{/number}","events_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/events","assignees_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/assignees{/user}","branches_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/branches{/branch}","tags_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/tags","blobs_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/statuses/{sha}","languages_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/languages","stargazers_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/stargazers","contributors_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/contributors","subscribers_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/subscribers","subscription_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/subscription","commits_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/contents/{+path}","compare_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/merges","archive_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/downloads","issues_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/issues{/number}","pulls_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/pulls{/number}","milestones_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/milestones{/number}","notifications_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/labels{/name}","releases_url":"https://api.github.com/repos/hsiliev/cloud_controller_ng/releases{/id}","created_at":"2015-03-30T08:47:58Z","updated_at":"2015-03-31T08:10:48Z","pushed_at":"2015-03-31T08:10:47Z","git_url":"git://github.com/hsiliev/cloud_controller_ng.git","ssh_url":"git@github.com:hsiliev/cloud_controller_ng.git","clone_url":"https://github.com/hsiliev/cloud_controller_ng.git","svn_url":"https://github.com/hsiliev/cloud_controller_ng","homepage":null,"size":16777,"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":"cloudfoundry:master","ref":"master","sha":"ed80d4f44052e916141d89b7f93787c71309d781","user":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"repo":{"id":4743255,"name":"cloud_controller_ng","full_name":"cloudfoundry/cloud_controller_ng","owner":{"login":"cloudfoundry","id":621746,"avatar_url":"https://avatars.githubusercontent.com/u/621746?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry","html_url":"https://github.com/cloudfoundry","followers_url":"https://api.github.com/users/cloudfoundry/followers","following_url":"https://api.github.com/users/cloudfoundry/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry/orgs","repos_url":"https://api.github.com/users/cloudfoundry/repos","events_url":"https://api.github.com/users/cloudfoundry/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry/cloud_controller_ng","description":"","fork":false,"url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng","forks_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/forks","keys_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/teams","hooks_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/events","assignees_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/tags","blobs_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/subscription","commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/merges","archive_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/downloads","issues_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/releases{/id}","created_at":"2012-06-21T19:14:32Z","updated_at":"2015-03-31T15:50:43Z","pushed_at":"2015-03-31T16:25:09Z","git_url":"git://github.com/cloudfoundry/cloud_controller_ng.git","ssh_url":"git@github.com:cloudfoundry/cloud_controller_ng.git","clone_url":"https://github.com/cloudfoundry/cloud_controller_ng.git","svn_url":"https://github.com/cloudfoundry/cloud_controller_ng","homepage":null,"size":34732,"stargazers_count":64,"watchers_count":64,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":167,"mirror_url":null,"open_issues_count":11,"forks":167,"open_issues":11,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350"},"html":{"href":"https://github.com/cloudfoundry/cloud_controller_ng/pull/350"},"issue":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/350"},"comments":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/issues/350/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/pulls/350/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry/cloud_controller_ng/statuses/2b410a3e83150bead17e402909e3c2937d3973b4"}}}}