{"action":"created","comment":{"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/comments/71618894","id":71618894,"diff_hunk":"@@ -220,8 +225,13 @@ def inject_imeta_helper(entity, deviation_table, parent=None):\n         elif isinstance(value, READ) or isinstance(value, DELETE):\n             continue\n         elif member.mtype == REFERENCE_LIST:\n-            for v in value:\n-                inject_imeta_helper(v, deviation_table, entity.i_meta)\n+            try:\n+                for v in value:\n+                    inject_imeta_helper(v, deviation_table, entity.i_meta)\n+            except TypeError:\n+                raise YPYModelError(\"Assigned object to YList {},\"\n+                                    \" use list method instead.\"","path":"sdk/python/ydk/services/meta_service.py","position":34,"original_position":34,"commit_id":"780dafdf94739649e0c2026b2bc12c68159d417e","original_commit_id":"780dafdf94739649e0c2026b2bc12c68159d417e","user":{"login":"psykokwak4","id":6261280,"avatar_url":"https://avatars.githubusercontent.com/u/6261280?v=3","gravatar_id":"","url":"https://api.github.com/users/psykokwak4","html_url":"https://github.com/psykokwak4","followers_url":"https://api.github.com/users/psykokwak4/followers","following_url":"https://api.github.com/users/psykokwak4/following{/other_user}","gists_url":"https://api.github.com/users/psykokwak4/gists{/gist_id}","starred_url":"https://api.github.com/users/psykokwak4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psykokwak4/subscriptions","organizations_url":"https://api.github.com/users/psykokwak4/orgs","repos_url":"https://api.github.com/users/psykokwak4/repos","events_url":"https://api.github.com/users/psykokwak4/events{/privacy}","received_events_url":"https://api.github.com/users/psykokwak4/received_events","type":"User","site_admin":false},"body":"Sure, will use YPYSerivceError, maybe the error message should be \"Assigned object to YList. Use list append or extend method instead.\" And also, check for YLeafList is in encoder, might need to move here. ","created_at":"2016-07-20T22:32:07Z","updated_at":"2016-07-20T22:32:07Z","html_url":"https://github.com/CiscoDevNet/ydk-gen/pull/187#discussion_r71618894","pull_request_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/comments/71618894"},"html":{"href":"https://github.com/CiscoDevNet/ydk-gen/pull/187#discussion_r71618894"},"pull_request":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187","id":78224383,"html_url":"https://github.com/CiscoDevNet/ydk-gen/pull/187","diff_url":"https://github.com/CiscoDevNet/ydk-gen/pull/187.diff","patch_url":"https://github.com/CiscoDevNet/ydk-gen/pull/187.patch","issue_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/187","number":187,"state":"open","locked":false,"title":"Added check for self referencing (#184), check for YList assignment.","user":{"login":"psykokwak4","id":6261280,"avatar_url":"https://avatars.githubusercontent.com/u/6261280?v=3","gravatar_id":"","url":"https://api.github.com/users/psykokwak4","html_url":"https://github.com/psykokwak4","followers_url":"https://api.github.com/users/psykokwak4/followers","following_url":"https://api.github.com/users/psykokwak4/following{/other_user}","gists_url":"https://api.github.com/users/psykokwak4/gists{/gist_id}","starred_url":"https://api.github.com/users/psykokwak4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psykokwak4/subscriptions","organizations_url":"https://api.github.com/users/psykokwak4/orgs","repos_url":"https://api.github.com/users/psykokwak4/repos","events_url":"https://api.github.com/users/psykokwak4/events{/privacy}","received_events_url":"https://api.github.com/users/psykokwak4/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T21:40:52Z","updated_at":"2016-07-20T22:32:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f2b7a4246af32e05012abc7015b60487a03dd6f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187/commits","review_comments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187/comments","review_comment_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/187/comments","statuses_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/statuses/780dafdf94739649e0c2026b2bc12c68159d417e","head":{"label":"CiscoDevNet:issue-184","ref":"issue-184","sha":"780dafdf94739649e0c2026b2bc12c68159d417e","user":{"login":"CiscoDevNet","id":8827988,"avatar_url":"https://avatars.githubusercontent.com/u/8827988?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoDevNet","html_url":"https://github.com/CiscoDevNet","followers_url":"https://api.github.com/users/CiscoDevNet/followers","following_url":"https://api.github.com/users/CiscoDevNet/following{/other_user}","gists_url":"https://api.github.com/users/CiscoDevNet/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoDevNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoDevNet/subscriptions","organizations_url":"https://api.github.com/users/CiscoDevNet/orgs","repos_url":"https://api.github.com/users/CiscoDevNet/repos","events_url":"https://api.github.com/users/CiscoDevNet/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoDevNet/received_events","type":"Organization","site_admin":false},"repo":{"id":53680541,"name":"ydk-gen","full_name":"CiscoDevNet/ydk-gen","owner":{"login":"CiscoDevNet","id":8827988,"avatar_url":"https://avatars.githubusercontent.com/u/8827988?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoDevNet","html_url":"https://github.com/CiscoDevNet","followers_url":"https://api.github.com/users/CiscoDevNet/followers","following_url":"https://api.github.com/users/CiscoDevNet/following{/other_user}","gists_url":"https://api.github.com/users/CiscoDevNet/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoDevNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoDevNet/subscriptions","organizations_url":"https://api.github.com/users/CiscoDevNet/orgs","repos_url":"https://api.github.com/users/CiscoDevNet/repos","events_url":"https://api.github.com/users/CiscoDevNet/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoDevNet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CiscoDevNet/ydk-gen","description":"Extensions to pyang for generating code from yang models.","fork":false,"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen","forks_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/forks","keys_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/teams","hooks_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/hooks","issue_events_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/events{/number}","events_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/events","assignees_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/assignees{/user}","branches_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/branches{/branch}","tags_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/tags","blobs_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/languages","stargazers_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/stargazers","contributors_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/contributors","subscribers_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/subscribers","subscription_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/subscription","commits_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/contents/{+path}","compare_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/merges","archive_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/downloads","issues_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues{/number}","pulls_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/labels{/name}","releases_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/releases{/id}","deployments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/deployments","created_at":"2016-03-11T16:27:20Z","updated_at":"2016-07-18T18:33:35Z","pushed_at":"2016-07-20T22:10:14Z","git_url":"git://github.com/CiscoDevNet/ydk-gen.git","ssh_url":"git@github.com:CiscoDevNet/ydk-gen.git","clone_url":"https://github.com/CiscoDevNet/ydk-gen.git","svn_url":"https://github.com/CiscoDevNet/ydk-gen","homepage":null,"size":2025,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":41,"forks":10,"open_issues":41,"watchers":15,"default_branch":"master"}},"base":{"label":"CiscoDevNet:master","ref":"master","sha":"9c257802f8b6fceda8a82fb664fb4e58f4084b9f","user":{"login":"CiscoDevNet","id":8827988,"avatar_url":"https://avatars.githubusercontent.com/u/8827988?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoDevNet","html_url":"https://github.com/CiscoDevNet","followers_url":"https://api.github.com/users/CiscoDevNet/followers","following_url":"https://api.github.com/users/CiscoDevNet/following{/other_user}","gists_url":"https://api.github.com/users/CiscoDevNet/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoDevNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoDevNet/subscriptions","organizations_url":"https://api.github.com/users/CiscoDevNet/orgs","repos_url":"https://api.github.com/users/CiscoDevNet/repos","events_url":"https://api.github.com/users/CiscoDevNet/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoDevNet/received_events","type":"Organization","site_admin":false},"repo":{"id":53680541,"name":"ydk-gen","full_name":"CiscoDevNet/ydk-gen","owner":{"login":"CiscoDevNet","id":8827988,"avatar_url":"https://avatars.githubusercontent.com/u/8827988?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoDevNet","html_url":"https://github.com/CiscoDevNet","followers_url":"https://api.github.com/users/CiscoDevNet/followers","following_url":"https://api.github.com/users/CiscoDevNet/following{/other_user}","gists_url":"https://api.github.com/users/CiscoDevNet/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoDevNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoDevNet/subscriptions","organizations_url":"https://api.github.com/users/CiscoDevNet/orgs","repos_url":"https://api.github.com/users/CiscoDevNet/repos","events_url":"https://api.github.com/users/CiscoDevNet/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoDevNet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CiscoDevNet/ydk-gen","description":"Extensions to pyang for generating code from yang models.","fork":false,"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen","forks_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/forks","keys_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/teams","hooks_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/hooks","issue_events_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/events{/number}","events_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/events","assignees_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/assignees{/user}","branches_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/branches{/branch}","tags_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/tags","blobs_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/refs{/sha}","trees_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/statuses/{sha}","languages_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/languages","stargazers_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/stargazers","contributors_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/contributors","subscribers_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/subscribers","subscription_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/subscription","commits_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/commits{/sha}","git_commits_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/git/commits{/sha}","comments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/comments{/number}","issue_comment_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/comments{/number}","contents_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/contents/{+path}","compare_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/merges","archive_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/downloads","issues_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues{/number}","pulls_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls{/number}","milestones_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/milestones{/number}","notifications_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/labels{/name}","releases_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/releases{/id}","deployments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/deployments","created_at":"2016-03-11T16:27:20Z","updated_at":"2016-07-18T18:33:35Z","pushed_at":"2016-07-20T22:10:14Z","git_url":"git://github.com/CiscoDevNet/ydk-gen.git","ssh_url":"git@github.com:CiscoDevNet/ydk-gen.git","clone_url":"https://github.com/CiscoDevNet/ydk-gen.git","svn_url":"https://github.com/CiscoDevNet/ydk-gen","homepage":null,"size":2025,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":41,"forks":10,"open_issues":41,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187"},"html":{"href":"https://github.com/CiscoDevNet/ydk-gen/pull/187"},"issue":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/187"},"comments":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/CiscoDevNet/ydk-gen/statuses/780dafdf94739649e0c2026b2bc12c68159d417e"}}}}
{"actor":{"display_login":"psykokwak4"}}