{"action":"closed","issue":{"url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/issues/29","repository_url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter","labels_url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/issues/29/comments","events_url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/issues/29/events","html_url":"https://github.com/DMTF/YANG-to-Redfish-Converter/issues/29","id":376643587,"node_id":"MDU6SXNzdWUzNzY2NDM1ODc=","number":29,"title":"Issue #22 still seen in `master` branch","user":{"login":"veritasium42","id":15697972,"node_id":"MDQ6VXNlcjE1Njk3OTcy","avatar_url":"https://avatars3.githubusercontent.com/u/15697972?v=4","gravatar_id":"","url":"https://api.github.com/users/veritasium42","html_url":"https://github.com/veritasium42","followers_url":"https://api.github.com/users/veritasium42/followers","following_url":"https://api.github.com/users/veritasium42/following{/other_user}","gists_url":"https://api.github.com/users/veritasium42/gists{/gist_id}","starred_url":"https://api.github.com/users/veritasium42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veritasium42/subscriptions","organizations_url":"https://api.github.com/users/veritasium42/orgs","repos_url":"https://api.github.com/users/veritasium42/repos","events_url":"https://api.github.com/users/veritasium42/events{/privacy}","received_events_url":"https://api.github.com/users/veritasium42/received_events","type":"User","site_admin":false},"labels":[{"id":778012308,"node_id":"MDU6TGFiZWw3NzgwMTIzMDg=","url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/labels/bug","name":"bug","color":"ee0701","default":true},{"id":1027207753,"node_id":"MDU6TGFiZWwxMDI3MjA3NzUz","url":"https://api.github.com/repos/DMTF/YANG-to-Redfish-Converter/labels/high","name":"high","color":"d32f2f","default":false}],"state":"closed","locked":false,"assignee":{"login":"tomasg2012","id":5571676,"node_id":"MDQ6VXNlcjU1NzE2NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5571676?v=4","gravatar_id":"","url":"https://api.github.com/users/tomasg2012","html_url":"https://github.com/tomasg2012","followers_url":"https://api.github.com/users/tomasg2012/followers","following_url":"https://api.github.com/users/tomasg2012/following{/other_user}","gists_url":"https://api.github.com/users/tomasg2012/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasg2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasg2012/subscriptions","organizations_url":"https://api.github.com/users/tomasg2012/orgs","repos_url":"https://api.github.com/users/tomasg2012/repos","events_url":"https://api.github.com/users/tomasg2012/events{/privacy}","received_events_url":"https://api.github.com/users/tomasg2012/received_events","type":"User","site_admin":false},"assignees":[{"login":"tomasg2012","id":5571676,"node_id":"MDQ6VXNlcjU1NzE2NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5571676?v=4","gravatar_id":"","url":"https://api.github.com/users/tomasg2012","html_url":"https://github.com/tomasg2012","followers_url":"https://api.github.com/users/tomasg2012/followers","following_url":"https://api.github.com/users/tomasg2012/following{/other_user}","gists_url":"https://api.github.com/users/tomasg2012/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasg2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasg2012/subscriptions","organizations_url":"https://api.github.com/users/tomasg2012/orgs","repos_url":"https://api.github.com/users/tomasg2012/repos","events_url":"https://api.github.com/users/tomasg2012/events{/privacy}","received_events_url":"https://api.github.com/users/tomasg2012/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-02T02:24:02Z","updated_at":"2018-12-02T23:05:56Z","closed_at":"2018-12-02T23:05:56Z","author_association":"NONE","body":"#22\r\nThe fix is available in `yang-plugin` branch.\r\n\r\nError:\r\n```\r\n(py3) vsawal@W109PQB7H2:~/dmtf/YANG-to-Redfish-Converter$ pyang --plugindir ./YANG-to-Redfish-Plugin --format redfish --path ~/dmtf/public --target_dir ~/dmtf/yang_to_rf_csdl/ ~/dmtf/public/release/models/vlan/openconfig-vlan.yang\r\nUhh\r\nTraceback (most recent call last):\r\n  File \"/home/vsawal/python-virtual-envs/py3/bin/pyang\", line 450, in <module>\r\n    run()\r\n  File \"/home/vsawal/python-virtual-envs/py3/bin/pyang\", line 419, in run\r\n    emit_obj.emit(ctx, modules, fd)\r\n  File \"./YANG-to-Redfish-Plugin/redfish.py\", line 66, in emit\r\n    xml_root = csdltree.build_tree(module, list_of_xml, logger)\r\n  File \"./YANG-to-Redfish-Plugin/rf/csdltree.py\", line 145, in build_tree\r\n    build_tree_repeat(item, schema_node, entity_node, main_node, list_of_xml, logger, prefix + csdlname + '.', topleveltypes=topleveltypes, toplevelimports=toplevelimports)\r\n  File \"./YANG-to-Redfish-Plugin/rf/csdltree.py\", line 335, in build_tree_repeat\r\n    annotation = handlers.handle_generic(yang_keyword, yang_arg, yang_children, target)\r\n  File \"./YANG-to-Redfish-Plugin/rf/statement_handlers.py\", line 22, in handle_generic\r\n    target, {'Term': redfishtypes.get_descriptive_properties_mapping(yang_keyword),\r\n  File \"./YANG-to-Redfish-Plugin/rf/redfishtypes.py\", line 57, in get_descriptive_properties_mapping\r\n    target_name = get_valid_csdl_identifier(property_name)\r\n  File \"./YANG-to-Redfish-Plugin/rf/redfishtypes.py\", line 33, in get_valid_csdl_identifier\r\n    new_name = name.replace('-', '_').replace(':', '.').replace('\"', '').replace('\\'', '')\r\nAttributeError: 'tuple' object has no attribute 'replace'\r\n```"}}
{"actor":{"display_login":"veritasium42"}}