{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments/63259394","id":63259394,"diff_hunk":"@@ -84,5 +114,28 @@ func (cmd *ImportImageCmd) Run() error {\n \tcmd.Id = vgbdtgObject.Id\n \tcmd.Uuid = vgbdtgObject.GlobalIdentifier\n \n+\tif cmd.Public {\n+\t\texecStmtRetryable := boshretry.NewRetryable(\n+\t\t\tfunc() (bool, error) {\n+\t\t\t\tid, err := vgbdtgService.CreatePublicArchiveTransaction(cmd.Id, cmd.PublicName, cmd.PublicNote, cmd.PublicNote, locations)\n+\t\t\t\tif err != nil {\n+\t\t\t\t\treturn true, errors.New(fmt.Sprintf(\"There would be an active transaction in progress.\"))\n+\t\t\t\t}\n+\n+\t\t\t\tcmd.Id = id\n+\t\t\t\tcmd.Uuid = \"\"\n+\n+\t\t\t\treturn false, nil\n+\t\t\t})\n+\t\ttimeService := clock.NewClock()\n+\t\ttimeoutRetryStrategy := boshretry.NewTimeoutRetryStrategy(5*time.Minute, 30*time.Second, execStmtRetryable, timeService, boshlog.NewLogger(boshlog.LevelInfo))","path":"cmds/import_image/import_image_cmd.go","position":90,"original_position":90,"commit_id":"fef7f6f68868b6c08e9566a19a679a5a6844367c","original_commit_id":"fef7f6f68868b6c08e9566a19a679a5a6844367c","user":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"body":"put these constants as Golang constants so we know easily where to change them","created_at":"2016-05-13T22:24:22Z","updated_at":"2016-05-13T22:24:22Z","html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49#discussion_r63259394","pull_request_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments/63259394"},"html":{"href":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49#discussion_r63259394"},"pull_request":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49","id":69806609,"html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49","diff_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49.diff","patch_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49.patch","issue_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/49","number":49,"state":"open","locked":false,"title":"Added \"--public\" flag to publish public images","user":{"login":"mattcui","id":3347572,"avatar_url":"https://avatars.githubusercontent.com/u/3347572?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcui","html_url":"https://github.com/mattcui","followers_url":"https://api.github.com/users/mattcui/followers","following_url":"https://api.github.com/users/mattcui/following{/other_user}","gists_url":"https://api.github.com/users/mattcui/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcui/subscriptions","organizations_url":"https://api.github.com/users/mattcui/orgs","repos_url":"https://api.github.com/users/mattcui/repos","events_url":"https://api.github.com/users/mattcui/events{/privacy}","received_events_url":"https://api.github.com/users/mattcui/received_events","type":"User","site_admin":false},"body":"@maximilien Synchronized Godeps with master, and re-submitted PR, please review. Thanks.","created_at":"2016-05-12T09:39:37Z","updated_at":"2016-05-13T22:24:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cca8f891d2ea36a6e6f704d24419a7fd1243389","assignee":{"login":"maximilien","id":39187,"avatar_url":"https://avatars.githubusercontent.com/u/39187?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilien","html_url":"https://github.com/maximilien","followers_url":"https://api.github.com/users/maximilien/followers","following_url":"https://api.github.com/users/maximilien/following{/other_user}","gists_url":"https://api.github.com/users/maximilien/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilien/subscriptions","organizations_url":"https://api.github.com/users/maximilien/orgs","repos_url":"https://api.github.com/users/maximilien/repos","events_url":"https://api.github.com/users/maximilien/events{/privacy}","received_events_url":"https://api.github.com/users/maximilien/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/49/comments","statuses_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/fef7f6f68868b6c08e9566a19a679a5a6844367c","head":{"label":"mattcui:pub_image","ref":"pub_image","sha":"fef7f6f68868b6c08e9566a19a679a5a6844367c","user":{"login":"mattcui","id":3347572,"avatar_url":"https://avatars.githubusercontent.com/u/3347572?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcui","html_url":"https://github.com/mattcui","followers_url":"https://api.github.com/users/mattcui/followers","following_url":"https://api.github.com/users/mattcui/following{/other_user}","gists_url":"https://api.github.com/users/mattcui/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcui/subscriptions","organizations_url":"https://api.github.com/users/mattcui/orgs","repos_url":"https://api.github.com/users/mattcui/repos","events_url":"https://api.github.com/users/mattcui/events{/privacy}","received_events_url":"https://api.github.com/users/mattcui/received_events","type":"User","site_admin":false},"repo":{"id":58110060,"name":"bosh-softlayer-tools","full_name":"mattcui/bosh-softlayer-tools","owner":{"login":"mattcui","id":3347572,"avatar_url":"https://avatars.githubusercontent.com/u/3347572?v=3","gravatar_id":"","url":"https://api.github.com/users/mattcui","html_url":"https://github.com/mattcui","followers_url":"https://api.github.com/users/mattcui/followers","following_url":"https://api.github.com/users/mattcui/following{/other_user}","gists_url":"https://api.github.com/users/mattcui/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcui/subscriptions","organizations_url":"https://api.github.com/users/mattcui/orgs","repos_url":"https://api.github.com/users/mattcui/repos","events_url":"https://api.github.com/users/mattcui/events{/privacy}","received_events_url":"https://api.github.com/users/mattcui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattcui/bosh-softlayer-tools","description":"Project with various small tools for SoftLayer CPI such as light stemcells creation and bare metal pooling","fork":true,"url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools","forks_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/forks","keys_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/teams","hooks_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/hooks","issue_events_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/issues/events{/number}","events_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/events","assignees_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/assignees{/user}","branches_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/branches{/branch}","tags_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/tags","blobs_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/languages","stargazers_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/stargazers","contributors_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/contributors","subscribers_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/subscribers","subscription_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/subscription","commits_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/contents/{+path}","compare_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/merges","archive_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/downloads","issues_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/issues{/number}","pulls_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/labels{/name}","releases_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/releases{/id}","deployments_url":"https://api.github.com/repos/mattcui/bosh-softlayer-tools/deployments","created_at":"2016-05-05T06:39:55Z","updated_at":"2016-05-05T06:39:56Z","pushed_at":"2016-05-13T14:14:04Z","git_url":"git://github.com/mattcui/bosh-softlayer-tools.git","ssh_url":"git@github.com:mattcui/bosh-softlayer-tools.git","clone_url":"https://github.com/mattcui/bosh-softlayer-tools.git","svn_url":"https://github.com/mattcui/bosh-softlayer-tools","homepage":"","size":1080,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"cloudfoundry-community:master","ref":"master","sha":"40554487059303ffe3356a84055de1af7551ce7d","user":{"login":"cloudfoundry-community","id":4378855,"avatar_url":"https://avatars.githubusercontent.com/u/4378855?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-community","html_url":"https://github.com/cloudfoundry-community","followers_url":"https://api.github.com/users/cloudfoundry-community/followers","following_url":"https://api.github.com/users/cloudfoundry-community/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-community/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-community/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-community/orgs","repos_url":"https://api.github.com/users/cloudfoundry-community/repos","events_url":"https://api.github.com/users/cloudfoundry-community/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-community/received_events","type":"Organization","site_admin":false},"repo":{"id":24205552,"name":"bosh-softlayer-tools","full_name":"cloudfoundry-community/bosh-softlayer-tools","owner":{"login":"cloudfoundry-community","id":4378855,"avatar_url":"https://avatars.githubusercontent.com/u/4378855?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-community","html_url":"https://github.com/cloudfoundry-community","followers_url":"https://api.github.com/users/cloudfoundry-community/followers","following_url":"https://api.github.com/users/cloudfoundry-community/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-community/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-community/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-community/orgs","repos_url":"https://api.github.com/users/cloudfoundry-community/repos","events_url":"https://api.github.com/users/cloudfoundry-community/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools","description":"Project with various small tools for SoftLayer CPI such as light stemcells creation and bare metal pooling","fork":false,"url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools","forks_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/forks","keys_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/teams","hooks_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/events","assignees_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/tags","blobs_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/subscription","commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/merges","archive_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/downloads","issues_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/deployments","created_at":"2014-09-18T21:19:05Z","updated_at":"2016-04-27T06:21:40Z","pushed_at":"2016-05-13T03:43:45Z","git_url":"git://github.com/cloudfoundry-community/bosh-softlayer-tools.git","ssh_url":"git@github.com:cloudfoundry-community/bosh-softlayer-tools.git","clone_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools.git","svn_url":"https://github.com/cloudfoundry-community/bosh-softlayer-tools","homepage":"","size":1077,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49"},"html":{"href":"https://github.com/cloudfoundry-community/bosh-softlayer-tools/pull/49"},"issue":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/49"},"comments":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry-community/bosh-softlayer-tools/statuses/fef7f6f68868b6c08e9566a19a679a5a6844367c"}}}}