{"action":"opened","number":31524,"pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/31524","id":60922970,"html_url":"https://github.com/saltstack/salt/pull/31524","diff_url":"https://github.com/saltstack/salt/pull/31524.diff","patch_url":"https://github.com/saltstack/salt/pull/31524.patch","issue_url":"https://api.github.com/repos/saltstack/salt/issues/31524","number":31524,"state":"open","locked":false,"title":"boo_lambda robustness fix in the face of restricted policies","user":{"login":"kraney","id":5760081,"avatar_url":"https://avatars.githubusercontent.com/u/5760081?v=3","gravatar_id":"","url":"https://api.github.com/users/kraney","html_url":"https://github.com/kraney","followers_url":"https://api.github.com/users/kraney/followers","following_url":"https://api.github.com/users/kraney/following{/other_user}","gists_url":"https://api.github.com/users/kraney/gists{/gist_id}","starred_url":"https://api.github.com/users/kraney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraney/subscriptions","organizations_url":"https://api.github.com/users/kraney/orgs","repos_url":"https://api.github.com/users/kraney/repos","events_url":"https://api.github.com/users/kraney/events{/privacy}","received_events_url":"https://api.github.com/users/kraney/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nFixes a case when no permissions are obtained for a lambda function when doing function_present.\r\n\r\n### What issues does this PR fix or reference?\r\nNone\r\n\r\n### Previous Behavior\r\nThrows a 'Nonetype is not iterable' exception.\r\n\r\n### New Behavior\r\nCorrectly handles this case\r\n\r\n### Tests written?\r\n- [x] Yes\r\n- [ ] No\r\n\r\nA new test has not been written to cover this case, but this code already has unit tests.","created_at":"2016-02-26T23:55:54Z","updated_at":"2016-02-26T23:55:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saltstack/salt/pulls/31524/commits","review_comments_url":"https://api.github.com/repos/saltstack/salt/pulls/31524/comments","review_comment_url":"https://api.github.com/repos/saltstack/salt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/31524/comments","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/ea4e5b76a0707bd90b152be006b54118b189326d","head":{"label":"kraney:boto_lambda","ref":"boto_lambda","sha":"ea4e5b76a0707bd90b152be006b54118b189326d","user":{"login":"kraney","id":5760081,"avatar_url":"https://avatars.githubusercontent.com/u/5760081?v=3","gravatar_id":"","url":"https://api.github.com/users/kraney","html_url":"https://github.com/kraney","followers_url":"https://api.github.com/users/kraney/followers","following_url":"https://api.github.com/users/kraney/following{/other_user}","gists_url":"https://api.github.com/users/kraney/gists{/gist_id}","starred_url":"https://api.github.com/users/kraney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraney/subscriptions","organizations_url":"https://api.github.com/users/kraney/orgs","repos_url":"https://api.github.com/users/kraney/repos","events_url":"https://api.github.com/users/kraney/events{/privacy}","received_events_url":"https://api.github.com/users/kraney/received_events","type":"User","site_admin":false},"repo":{"id":46378510,"name":"salt","full_name":"kraney/salt","owner":{"login":"kraney","id":5760081,"avatar_url":"https://avatars.githubusercontent.com/u/5760081?v=3","gravatar_id":"","url":"https://api.github.com/users/kraney","html_url":"https://github.com/kraney","followers_url":"https://api.github.com/users/kraney/followers","following_url":"https://api.github.com/users/kraney/following{/other_user}","gists_url":"https://api.github.com/users/kraney/gists{/gist_id}","starred_url":"https://api.github.com/users/kraney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraney/subscriptions","organizations_url":"https://api.github.com/users/kraney/orgs","repos_url":"https://api.github.com/users/kraney/repos","events_url":"https://api.github.com/users/kraney/events{/privacy}","received_events_url":"https://api.github.com/users/kraney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kraney/salt","description":"Infrastructure automation and management system","fork":true,"url":"https://api.github.com/repos/kraney/salt","forks_url":"https://api.github.com/repos/kraney/salt/forks","keys_url":"https://api.github.com/repos/kraney/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kraney/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kraney/salt/teams","hooks_url":"https://api.github.com/repos/kraney/salt/hooks","issue_events_url":"https://api.github.com/repos/kraney/salt/issues/events{/number}","events_url":"https://api.github.com/repos/kraney/salt/events","assignees_url":"https://api.github.com/repos/kraney/salt/assignees{/user}","branches_url":"https://api.github.com/repos/kraney/salt/branches{/branch}","tags_url":"https://api.github.com/repos/kraney/salt/tags","blobs_url":"https://api.github.com/repos/kraney/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kraney/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kraney/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/kraney/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kraney/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/kraney/salt/languages","stargazers_url":"https://api.github.com/repos/kraney/salt/stargazers","contributors_url":"https://api.github.com/repos/kraney/salt/contributors","subscribers_url":"https://api.github.com/repos/kraney/salt/subscribers","subscription_url":"https://api.github.com/repos/kraney/salt/subscription","commits_url":"https://api.github.com/repos/kraney/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/kraney/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/kraney/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/kraney/salt/issues/comments{/number}","contents_url":"https://api.github.com/repos/kraney/salt/contents/{+path}","compare_url":"https://api.github.com/repos/kraney/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kraney/salt/merges","archive_url":"https://api.github.com/repos/kraney/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kraney/salt/downloads","issues_url":"https://api.github.com/repos/kraney/salt/issues{/number}","pulls_url":"https://api.github.com/repos/kraney/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/kraney/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/kraney/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kraney/salt/labels{/name}","releases_url":"https://api.github.com/repos/kraney/salt/releases{/id}","deployments_url":"https://api.github.com/repos/kraney/salt/deployments","created_at":"2015-11-17T22:07:47Z","updated_at":"2016-01-11T22:08:15Z","pushed_at":"2016-02-26T23:53:12Z","git_url":"git://github.com/kraney/salt.git","ssh_url":"git@github.com:kraney/salt.git","clone_url":"https://github.com/kraney/salt.git","svn_url":"https://github.com/kraney/salt","homepage":"saltstack.com","size":149794,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"develop"}},"base":{"label":"saltstack:develop","ref":"develop","sha":"554eb2df7af300994f2edca8e773d6a7ca2b4740","user":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"repo":{"id":1390248,"name":"salt","full_name":"saltstack/salt","owner":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack/salt","description":"Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt Open software package repository here: ","fork":false,"url":"https://api.github.com/repos/saltstack/salt","forks_url":"https://api.github.com/repos/saltstack/salt/forks","keys_url":"https://api.github.com/repos/saltstack/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack/salt/teams","hooks_url":"https://api.github.com/repos/saltstack/salt/hooks","issue_events_url":"https://api.github.com/repos/saltstack/salt/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack/salt/events","assignees_url":"https://api.github.com/repos/saltstack/salt/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack/salt/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack/salt/tags","blobs_url":"https://api.github.com/repos/saltstack/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack/salt/languages","stargazers_url":"https://api.github.com/repos/saltstack/salt/stargazers","contributors_url":"https://api.github.com/repos/saltstack/salt/contributors","subscribers_url":"https://api.github.com/repos/saltstack/salt/subscribers","subscription_url":"https://api.github.com/repos/saltstack/salt/subscription","commits_url":"https://api.github.com/repos/saltstack/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack/salt/issues/comments{/number}","contents_url":"https://api.github.com/repos/saltstack/salt/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack/salt/merges","archive_url":"https://api.github.com/repos/saltstack/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack/salt/downloads","issues_url":"https://api.github.com/repos/saltstack/salt/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack/salt/labels{/name}","releases_url":"https://api.github.com/repos/saltstack/salt/releases{/id}","deployments_url":"https://api.github.com/repos/saltstack/salt/deployments","created_at":"2011-02-20T20:16:56Z","updated_at":"2016-02-26T20:24:02Z","pushed_at":"2016-02-26T23:55:54Z","git_url":"git://github.com/saltstack/salt.git","ssh_url":"git@github.com:saltstack/salt.git","clone_url":"https://github.com/saltstack/salt.git","svn_url":"https://github.com/saltstack/salt","homepage":"https://repo.saltstack.com/","size":164055,"stargazers_count":6251,"watchers_count":6251,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2742,"mirror_url":null,"open_issues_count":3352,"forks":2742,"open_issues":3352,"watchers":6251,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt/pulls/31524"},"html":{"href":"https://github.com/saltstack/salt/pull/31524"},"issue":{"href":"https://api.github.com/repos/saltstack/salt/issues/31524"},"comments":{"href":"https://api.github.com/repos/saltstack/salt/issues/31524/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack/salt/pulls/31524/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack/salt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saltstack/salt/pulls/31524/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack/salt/statuses/ea4e5b76a0707bd90b152be006b54118b189326d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}