{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10","id":68655314,"html_url":"https://github.com/openbmc/phosphor-objmgr/pull/10","diff_url":"https://github.com/openbmc/phosphor-objmgr/pull/10.diff","patch_url":"https://github.com/openbmc/phosphor-objmgr/pull/10.patch","issue_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/10","number":10,"state":"closed","locked":false,"title":"Add an accessor function for cache entries","user":{"login":"bradbishop","id":8423748,"avatar_url":"https://avatars.githubusercontent.com/u/8423748?v=3","gravatar_id":"","url":"https://api.github.com/users/bradbishop","html_url":"https://github.com/bradbishop","followers_url":"https://api.github.com/users/bradbishop/followers","following_url":"https://api.github.com/users/bradbishop/following{/other_user}","gists_url":"https://api.github.com/users/bradbishop/gists{/gist_id}","starred_url":"https://api.github.com/users/bradbishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradbishop/subscriptions","organizations_url":"https://api.github.com/users/bradbishop/orgs","repos_url":"https://api.github.com/users/bradbishop/repos","events_url":"https://api.github.com/users/bradbishop/events{/privacy}","received_events_url":"https://api.github.com/users/bradbishop/received_events","type":"User","site_admin":false},"body":"Determining the difference between a directory path element\r\nand a path element that doesn't exist with pyphosphor is\r\nawkward.  Create an accessor function to funnel this weirdness\r\nin one spot.\r\n\r\nMake sure objectmanagers adhere to match rules before adding them.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/openbmc/phosphor-objmgr/10)\n<!-- Reviewable:end -->\n","created_at":"2016-05-03T04:03:37Z","updated_at":"2016-05-03T04:24:09Z","closed_at":"2016-05-03T04:24:09Z","merged_at":null,"merge_commit_sha":"41f3c056300ce114951e1b02b816a03f7c3881eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10/commits","review_comments_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10/comments","review_comment_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/10/comments","statuses_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/statuses/10abe04576d85a15d43f7df503bd74aed39b00e6","head":{"label":"bradbishop:accessor","ref":"accessor","sha":"10abe04576d85a15d43f7df503bd74aed39b00e6","user":{"login":"bradbishop","id":8423748,"avatar_url":"https://avatars.githubusercontent.com/u/8423748?v=3","gravatar_id":"","url":"https://api.github.com/users/bradbishop","html_url":"https://github.com/bradbishop","followers_url":"https://api.github.com/users/bradbishop/followers","following_url":"https://api.github.com/users/bradbishop/following{/other_user}","gists_url":"https://api.github.com/users/bradbishop/gists{/gist_id}","starred_url":"https://api.github.com/users/bradbishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradbishop/subscriptions","organizations_url":"https://api.github.com/users/bradbishop/orgs","repos_url":"https://api.github.com/users/bradbishop/repos","events_url":"https://api.github.com/users/bradbishop/events{/privacy}","received_events_url":"https://api.github.com/users/bradbishop/received_events","type":"User","site_admin":false},"repo":{"id":44555048,"name":"phosphor-objmgr","full_name":"bradbishop/phosphor-objmgr","owner":{"login":"bradbishop","id":8423748,"avatar_url":"https://avatars.githubusercontent.com/u/8423748?v=3","gravatar_id":"","url":"https://api.github.com/users/bradbishop","html_url":"https://github.com/bradbishop","followers_url":"https://api.github.com/users/bradbishop/followers","following_url":"https://api.github.com/users/bradbishop/following{/other_user}","gists_url":"https://api.github.com/users/bradbishop/gists{/gist_id}","starred_url":"https://api.github.com/users/bradbishop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradbishop/subscriptions","organizations_url":"https://api.github.com/users/bradbishop/orgs","repos_url":"https://api.github.com/users/bradbishop/repos","events_url":"https://api.github.com/users/bradbishop/events{/privacy}","received_events_url":"https://api.github.com/users/bradbishop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradbishop/phosphor-objmgr","description":"Phosphor Object Manager","fork":true,"url":"https://api.github.com/repos/bradbishop/phosphor-objmgr","forks_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/forks","keys_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/teams","hooks_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/hooks","issue_events_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/issues/events{/number}","events_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/events","assignees_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/assignees{/user}","branches_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/branches{/branch}","tags_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/tags","blobs_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/statuses/{sha}","languages_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/languages","stargazers_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/stargazers","contributors_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/contributors","subscribers_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/subscribers","subscription_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/subscription","commits_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/contents/{+path}","compare_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/merges","archive_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/downloads","issues_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/issues{/number}","pulls_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/pulls{/number}","milestones_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/milestones{/number}","notifications_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/labels{/name}","releases_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/releases{/id}","deployments_url":"https://api.github.com/repos/bradbishop/phosphor-objmgr/deployments","created_at":"2015-10-19T18:28:06Z","updated_at":"2016-03-04T20:33:54Z","pushed_at":"2016-05-03T03:56:54Z","git_url":"git://github.com/bradbishop/phosphor-objmgr.git","ssh_url":"git@github.com:bradbishop/phosphor-objmgr.git","clone_url":"https://github.com/bradbishop/phosphor-objmgr.git","svn_url":"https://github.com/bradbishop/phosphor-objmgr","homepage":null,"size":38,"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":"openbmc:master","ref":"master","sha":"a2c0d00e47ec082b8bb8c96629a0a677616e49fe","user":{"login":"openbmc","id":13670043,"avatar_url":"https://avatars.githubusercontent.com/u/13670043?v=3","gravatar_id":"","url":"https://api.github.com/users/openbmc","html_url":"https://github.com/openbmc","followers_url":"https://api.github.com/users/openbmc/followers","following_url":"https://api.github.com/users/openbmc/following{/other_user}","gists_url":"https://api.github.com/users/openbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/openbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openbmc/subscriptions","organizations_url":"https://api.github.com/users/openbmc/orgs","repos_url":"https://api.github.com/users/openbmc/repos","events_url":"https://api.github.com/users/openbmc/events{/privacy}","received_events_url":"https://api.github.com/users/openbmc/received_events","type":"Organization","site_admin":false},"repo":{"id":44545625,"name":"phosphor-objmgr","full_name":"openbmc/phosphor-objmgr","owner":{"login":"openbmc","id":13670043,"avatar_url":"https://avatars.githubusercontent.com/u/13670043?v=3","gravatar_id":"","url":"https://api.github.com/users/openbmc","html_url":"https://github.com/openbmc","followers_url":"https://api.github.com/users/openbmc/followers","following_url":"https://api.github.com/users/openbmc/following{/other_user}","gists_url":"https://api.github.com/users/openbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/openbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openbmc/subscriptions","organizations_url":"https://api.github.com/users/openbmc/orgs","repos_url":"https://api.github.com/users/openbmc/repos","events_url":"https://api.github.com/users/openbmc/events{/privacy}","received_events_url":"https://api.github.com/users/openbmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openbmc/phosphor-objmgr","description":"Phosphor Object Manager","fork":false,"url":"https://api.github.com/repos/openbmc/phosphor-objmgr","forks_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/forks","keys_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/teams","hooks_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/hooks","issue_events_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/events{/number}","events_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/events","assignees_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/assignees{/user}","branches_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/branches{/branch}","tags_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/tags","blobs_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/statuses/{sha}","languages_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/languages","stargazers_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/stargazers","contributors_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/contributors","subscribers_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/subscribers","subscription_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/subscription","commits_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/contents/{+path}","compare_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/merges","archive_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/downloads","issues_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues{/number}","pulls_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls{/number}","milestones_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/milestones{/number}","notifications_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/labels{/name}","releases_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/releases{/id}","deployments_url":"https://api.github.com/repos/openbmc/phosphor-objmgr/deployments","created_at":"2015-10-19T15:47:49Z","updated_at":"2016-02-09T17:59:42Z","pushed_at":"2016-05-03T04:03:42Z","git_url":"git://github.com/openbmc/phosphor-objmgr.git","ssh_url":"git@github.com:openbmc/phosphor-objmgr.git","clone_url":"https://github.com/openbmc/phosphor-objmgr.git","svn_url":"https://github.com/openbmc/phosphor-objmgr","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10"},"html":{"href":"https://github.com/openbmc/phosphor-objmgr/pull/10"},"issue":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/10"},"comments":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/openbmc/phosphor-objmgr/statuses/10abe04576d85a15d43f7df503bd74aed39b00e6"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":18,"deletions":10,"changed_files":1}}