{"action":"created","comment":{"url":"https://api.github.com/repos/developmentseed/kes/pulls/comments/205862736","pull_request_review_id":141222871,"id":205862736,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTg2MjczNg==","diff_hunk":"@@ -196,19 +203,26 @@ class Lambda {\n       });\n       const jobs = Object.keys(uniqueHashes).map(l => this.zipAndUploadLambda(uniqueHashes[l]));\n \n-      return Promise.all(jobs).then(() => {\n-        // we handle lambdas as both arrays and key/objects\n-        // below condition is intended to for cases where\n-        // the lambda is returned as a lsit\n-        if (Array.isArray(this.config.lambdas)) {\n-          this.config.lambdas = lambdas;\n+      return Promise.all(jobs)\n+        .then(() => {\n+          // we handle lambdas as both arrays and key/objects\n+          // below condition is intended to for cases where\n+          // the lambda is returned as a list\n+          if (Array.isArray(this.config.lambdas)) {\n+            this.config.lambdas = lambdas;\n+            return this.config;\n+          }\n+          const tmp = {};\n+          lambdas.forEach(l => (tmp[l.name] = l));\n+          this.config.lambdas = tmp;\n           return this.config;\n-        }\n-        const tmp = {};\n-        lambdas.forEach(l => (tmp[l.name] = l));\n-        this.config.lambdas = tmp;\n-        return this.config;\n-      });\n+        })\n+        .catch((e) => {\n+          if (e.message.includes('ENOENT')) {","path":"src/lambda.js","position":65,"original_position":65,"commit_id":"7de90cbf4548d11e239e6c1da3f6747e2319ae4c","original_commit_id":"7de90cbf4548d11e239e6c1da3f6747e2319ae4c","user":{"login":"scisco","id":1933118,"node_id":"MDQ6VXNlcjE5MzMxMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1933118?v=4","gravatar_id":"","url":"https://api.github.com/users/scisco","html_url":"https://github.com/scisco","followers_url":"https://api.github.com/users/scisco/followers","following_url":"https://api.github.com/users/scisco/following{/other_user}","gists_url":"https://api.github.com/users/scisco/gists{/gist_id}","starred_url":"https://api.github.com/users/scisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scisco/subscriptions","organizations_url":"https://api.github.com/users/scisco/orgs","repos_url":"https://api.github.com/users/scisco/repos","events_url":"https://api.github.com/users/scisco/events{/privacy}","received_events_url":"https://api.github.com/users/scisco/received_events","type":"User","site_admin":false},"body":"yes, will do.","created_at":"2018-07-27T18:31:06Z","updated_at":"2018-07-27T18:31:06Z","html_url":"https://github.com/developmentseed/kes/pull/65#discussion_r205862736","pull_request_url":"https://api.github.com/repos/developmentseed/kes/pulls/65","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/comments/205862736"},"html":{"href":"https://github.com/developmentseed/kes/pull/65#discussion_r205862736"},"pull_request":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/65"}},"in_reply_to_id":205861795},"pull_request":{"url":"https://api.github.com/repos/developmentseed/kes/pulls/65","id":204505076,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTA1MDc2","html_url":"https://github.com/developmentseed/kes/pull/65","diff_url":"https://github.com/developmentseed/kes/pull/65.diff","patch_url":"https://github.com/developmentseed/kes/pull/65.patch","issue_url":"https://api.github.com/repos/developmentseed/kes/issues/65","number":65,"state":"open","locked":false,"title":"fix the corrupt zip file bug","user":{"login":"scisco","id":1933118,"node_id":"MDQ6VXNlcjE5MzMxMTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1933118?v=4","gravatar_id":"","url":"https://api.github.com/users/scisco","html_url":"https://github.com/scisco","followers_url":"https://api.github.com/users/scisco/followers","following_url":"https://api.github.com/users/scisco/following{/other_user}","gists_url":"https://api.github.com/users/scisco/gists{/gist_id}","starred_url":"https://api.github.com/users/scisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scisco/subscriptions","organizations_url":"https://api.github.com/users/scisco/orgs","repos_url":"https://api.github.com/users/scisco/repos","events_url":"https://api.github.com/users/scisco/events{/privacy}","received_events_url":"https://api.github.com/users/scisco/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-27T18:20:53Z","updated_at":"2018-07-27T18:31:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2fd2e7cea55496cbb46fd8bbef1f4ec67b9931c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/developmentseed/kes/pulls/65/commits","review_comments_url":"https://api.github.com/repos/developmentseed/kes/pulls/65/comments","review_comment_url":"https://api.github.com/repos/developmentseed/kes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/developmentseed/kes/issues/65/comments","statuses_url":"https://api.github.com/repos/developmentseed/kes/statuses/7de90cbf4548d11e239e6c1da3f6747e2319ae4c","head":{"label":"developmentseed:v2.2.3","ref":"v2.2.3","sha":"7de90cbf4548d11e239e6c1da3f6747e2319ae4c","user":{"login":"developmentseed","id":92384,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMzg0","avatar_url":"https://avatars0.githubusercontent.com/u/92384?v=4","gravatar_id":"","url":"https://api.github.com/users/developmentseed","html_url":"https://github.com/developmentseed","followers_url":"https://api.github.com/users/developmentseed/followers","following_url":"https://api.github.com/users/developmentseed/following{/other_user}","gists_url":"https://api.github.com/users/developmentseed/gists{/gist_id}","starred_url":"https://api.github.com/users/developmentseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developmentseed/subscriptions","organizations_url":"https://api.github.com/users/developmentseed/orgs","repos_url":"https://api.github.com/users/developmentseed/repos","events_url":"https://api.github.com/users/developmentseed/events{/privacy}","received_events_url":"https://api.github.com/users/developmentseed/received_events","type":"Organization","site_admin":false},"repo":{"id":89641620,"node_id":"MDEwOlJlcG9zaXRvcnk4OTY0MTYyMA==","name":"kes","full_name":"developmentseed/kes","owner":{"login":"developmentseed","id":92384,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMzg0","avatar_url":"https://avatars0.githubusercontent.com/u/92384?v=4","gravatar_id":"","url":"https://api.github.com/users/developmentseed","html_url":"https://github.com/developmentseed","followers_url":"https://api.github.com/users/developmentseed/followers","following_url":"https://api.github.com/users/developmentseed/following{/other_user}","gists_url":"https://api.github.com/users/developmentseed/gists{/gist_id}","starred_url":"https://api.github.com/users/developmentseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developmentseed/subscriptions","organizations_url":"https://api.github.com/users/developmentseed/orgs","repos_url":"https://api.github.com/users/developmentseed/repos","events_url":"https://api.github.com/users/developmentseed/events{/privacy}","received_events_url":"https://api.github.com/users/developmentseed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/developmentseed/kes","description":"An easier way to use CloudFormation on AWS","fork":false,"url":"https://api.github.com/repos/developmentseed/kes","forks_url":"https://api.github.com/repos/developmentseed/kes/forks","keys_url":"https://api.github.com/repos/developmentseed/kes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/developmentseed/kes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/developmentseed/kes/teams","hooks_url":"https://api.github.com/repos/developmentseed/kes/hooks","issue_events_url":"https://api.github.com/repos/developmentseed/kes/issues/events{/number}","events_url":"https://api.github.com/repos/developmentseed/kes/events","assignees_url":"https://api.github.com/repos/developmentseed/kes/assignees{/user}","branches_url":"https://api.github.com/repos/developmentseed/kes/branches{/branch}","tags_url":"https://api.github.com/repos/developmentseed/kes/tags","blobs_url":"https://api.github.com/repos/developmentseed/kes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/developmentseed/kes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/developmentseed/kes/git/refs{/sha}","trees_url":"https://api.github.com/repos/developmentseed/kes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/developmentseed/kes/statuses/{sha}","languages_url":"https://api.github.com/repos/developmentseed/kes/languages","stargazers_url":"https://api.github.com/repos/developmentseed/kes/stargazers","contributors_url":"https://api.github.com/repos/developmentseed/kes/contributors","subscribers_url":"https://api.github.com/repos/developmentseed/kes/subscribers","subscription_url":"https://api.github.com/repos/developmentseed/kes/subscription","commits_url":"https://api.github.com/repos/developmentseed/kes/commits{/sha}","git_commits_url":"https://api.github.com/repos/developmentseed/kes/git/commits{/sha}","comments_url":"https://api.github.com/repos/developmentseed/kes/comments{/number}","issue_comment_url":"https://api.github.com/repos/developmentseed/kes/issues/comments{/number}","contents_url":"https://api.github.com/repos/developmentseed/kes/contents/{+path}","compare_url":"https://api.github.com/repos/developmentseed/kes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/developmentseed/kes/merges","archive_url":"https://api.github.com/repos/developmentseed/kes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/developmentseed/kes/downloads","issues_url":"https://api.github.com/repos/developmentseed/kes/issues{/number}","pulls_url":"https://api.github.com/repos/developmentseed/kes/pulls{/number}","milestones_url":"https://api.github.com/repos/developmentseed/kes/milestones{/number}","notifications_url":"https://api.github.com/repos/developmentseed/kes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/developmentseed/kes/labels{/name}","releases_url":"https://api.github.com/repos/developmentseed/kes/releases{/id}","deployments_url":"https://api.github.com/repos/developmentseed/kes/deployments","created_at":"2017-04-27T21:25:14Z","updated_at":"2018-06-01T18:01:54Z","pushed_at":"2018-07-27T18:20:53Z","git_url":"git://github.com/developmentseed/kes.git","ssh_url":"git@github.com:developmentseed/kes.git","clone_url":"https://github.com/developmentseed/kes.git","svn_url":"https://github.com/developmentseed/kes","homepage":"https://devseed.com/kes","size":1556,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"developmentseed:master","ref":"master","sha":"5623272aac1918dc677af5a4b0f1813739e6395a","user":{"login":"developmentseed","id":92384,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMzg0","avatar_url":"https://avatars0.githubusercontent.com/u/92384?v=4","gravatar_id":"","url":"https://api.github.com/users/developmentseed","html_url":"https://github.com/developmentseed","followers_url":"https://api.github.com/users/developmentseed/followers","following_url":"https://api.github.com/users/developmentseed/following{/other_user}","gists_url":"https://api.github.com/users/developmentseed/gists{/gist_id}","starred_url":"https://api.github.com/users/developmentseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developmentseed/subscriptions","organizations_url":"https://api.github.com/users/developmentseed/orgs","repos_url":"https://api.github.com/users/developmentseed/repos","events_url":"https://api.github.com/users/developmentseed/events{/privacy}","received_events_url":"https://api.github.com/users/developmentseed/received_events","type":"Organization","site_admin":false},"repo":{"id":89641620,"node_id":"MDEwOlJlcG9zaXRvcnk4OTY0MTYyMA==","name":"kes","full_name":"developmentseed/kes","owner":{"login":"developmentseed","id":92384,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMzg0","avatar_url":"https://avatars0.githubusercontent.com/u/92384?v=4","gravatar_id":"","url":"https://api.github.com/users/developmentseed","html_url":"https://github.com/developmentseed","followers_url":"https://api.github.com/users/developmentseed/followers","following_url":"https://api.github.com/users/developmentseed/following{/other_user}","gists_url":"https://api.github.com/users/developmentseed/gists{/gist_id}","starred_url":"https://api.github.com/users/developmentseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developmentseed/subscriptions","organizations_url":"https://api.github.com/users/developmentseed/orgs","repos_url":"https://api.github.com/users/developmentseed/repos","events_url":"https://api.github.com/users/developmentseed/events{/privacy}","received_events_url":"https://api.github.com/users/developmentseed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/developmentseed/kes","description":"An easier way to use CloudFormation on AWS","fork":false,"url":"https://api.github.com/repos/developmentseed/kes","forks_url":"https://api.github.com/repos/developmentseed/kes/forks","keys_url":"https://api.github.com/repos/developmentseed/kes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/developmentseed/kes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/developmentseed/kes/teams","hooks_url":"https://api.github.com/repos/developmentseed/kes/hooks","issue_events_url":"https://api.github.com/repos/developmentseed/kes/issues/events{/number}","events_url":"https://api.github.com/repos/developmentseed/kes/events","assignees_url":"https://api.github.com/repos/developmentseed/kes/assignees{/user}","branches_url":"https://api.github.com/repos/developmentseed/kes/branches{/branch}","tags_url":"https://api.github.com/repos/developmentseed/kes/tags","blobs_url":"https://api.github.com/repos/developmentseed/kes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/developmentseed/kes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/developmentseed/kes/git/refs{/sha}","trees_url":"https://api.github.com/repos/developmentseed/kes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/developmentseed/kes/statuses/{sha}","languages_url":"https://api.github.com/repos/developmentseed/kes/languages","stargazers_url":"https://api.github.com/repos/developmentseed/kes/stargazers","contributors_url":"https://api.github.com/repos/developmentseed/kes/contributors","subscribers_url":"https://api.github.com/repos/developmentseed/kes/subscribers","subscription_url":"https://api.github.com/repos/developmentseed/kes/subscription","commits_url":"https://api.github.com/repos/developmentseed/kes/commits{/sha}","git_commits_url":"https://api.github.com/repos/developmentseed/kes/git/commits{/sha}","comments_url":"https://api.github.com/repos/developmentseed/kes/comments{/number}","issue_comment_url":"https://api.github.com/repos/developmentseed/kes/issues/comments{/number}","contents_url":"https://api.github.com/repos/developmentseed/kes/contents/{+path}","compare_url":"https://api.github.com/repos/developmentseed/kes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/developmentseed/kes/merges","archive_url":"https://api.github.com/repos/developmentseed/kes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/developmentseed/kes/downloads","issues_url":"https://api.github.com/repos/developmentseed/kes/issues{/number}","pulls_url":"https://api.github.com/repos/developmentseed/kes/pulls{/number}","milestones_url":"https://api.github.com/repos/developmentseed/kes/milestones{/number}","notifications_url":"https://api.github.com/repos/developmentseed/kes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/developmentseed/kes/labels{/name}","releases_url":"https://api.github.com/repos/developmentseed/kes/releases{/id}","deployments_url":"https://api.github.com/repos/developmentseed/kes/deployments","created_at":"2017-04-27T21:25:14Z","updated_at":"2018-06-01T18:01:54Z","pushed_at":"2018-07-27T18:20:53Z","git_url":"git://github.com/developmentseed/kes.git","ssh_url":"git@github.com:developmentseed/kes.git","clone_url":"https://github.com/developmentseed/kes.git","svn_url":"https://github.com/developmentseed/kes","homepage":"https://devseed.com/kes","size":1556,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/65"},"html":{"href":"https://github.com/developmentseed/kes/pull/65"},"issue":{"href":"https://api.github.com/repos/developmentseed/kes/issues/65"},"comments":{"href":"https://api.github.com/repos/developmentseed/kes/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/developmentseed/kes/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/developmentseed/kes/statuses/7de90cbf4548d11e239e6c1da3f6747e2319ae4c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"scisco"}}