{"action":"closed","issue":{"url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/430","repository_url":"https://api.github.com/repos/Juniper/py-junos-eznc","labels_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/430/comments","events_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/430/events","html_url":"https://github.com/Juniper/py-junos-eznc/issues/430","id":103553889,"number":430,"title":"Strip XML namespaces when tables are instantiated from a path to an XML file.","user":{"login":"stacywsmith","id":12446307,"avatar_url":"https://avatars.githubusercontent.com/u/12446307?v=3","gravatar_id":"","url":"https://api.github.com/users/stacywsmith","html_url":"https://github.com/stacywsmith","followers_url":"https://api.github.com/users/stacywsmith/followers","following_url":"https://api.github.com/users/stacywsmith/following{/other_user}","gists_url":"https://api.github.com/users/stacywsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/stacywsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacywsmith/subscriptions","organizations_url":"https://api.github.com/users/stacywsmith/orgs","repos_url":"https://api.github.com/users/stacywsmith/repos","events_url":"https://api.github.com/users/stacywsmith/events{/privacy}","received_events_url":"https://api.github.com/users/stacywsmith/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Juniper/py-junos-eznc/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"vnitinv","id":767016,"avatar_url":"https://avatars.githubusercontent.com/u/767016?v=3","gravatar_id":"","url":"https://api.github.com/users/vnitinv","html_url":"https://github.com/vnitinv","followers_url":"https://api.github.com/users/vnitinv/followers","following_url":"https://api.github.com/users/vnitinv/following{/other_user}","gists_url":"https://api.github.com/users/vnitinv/gists{/gist_id}","starred_url":"https://api.github.com/users/vnitinv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnitinv/subscriptions","organizations_url":"https://api.github.com/users/vnitinv/orgs","repos_url":"https://api.github.com/users/vnitinv/repos","events_url":"https://api.github.com/users/vnitinv/events{/privacy}","received_events_url":"https://api.github.com/users/vnitinv/received_events","type":"User","site_admin":false},"assignees":[{"login":"vnitinv","id":767016,"avatar_url":"https://avatars.githubusercontent.com/u/767016?v=3","gravatar_id":"","url":"https://api.github.com/users/vnitinv","html_url":"https://github.com/vnitinv","followers_url":"https://api.github.com/users/vnitinv/followers","following_url":"https://api.github.com/users/vnitinv/following{/other_user}","gists_url":"https://api.github.com/users/vnitinv/gists{/gist_id}","starred_url":"https://api.github.com/users/vnitinv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnitinv/subscriptions","organizations_url":"https://api.github.com/users/vnitinv/orgs","repos_url":"https://api.github.com/users/vnitinv/repos","events_url":"https://api.github.com/users/vnitinv/events{/privacy}","received_events_url":"https://api.github.com/users/vnitinv/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Juniper/py-junos-eznc/milestones/16","html_url":"https://github.com/Juniper/py-junos-eznc/milestones/R_2_1_0","labels_url":"https://api.github.com/repos/Juniper/py-junos-eznc/milestones/16/labels","id":1819816,"number":16,"title":"R_2_1_0","description":null,"creator":{"login":"vnitinv","id":767016,"avatar_url":"https://avatars.githubusercontent.com/u/767016?v=3","gravatar_id":"","url":"https://api.github.com/users/vnitinv","html_url":"https://github.com/vnitinv","followers_url":"https://api.github.com/users/vnitinv/followers","following_url":"https://api.github.com/users/vnitinv/following{/other_user}","gists_url":"https://api.github.com/users/vnitinv/gists{/gist_id}","starred_url":"https://api.github.com/users/vnitinv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnitinv/subscriptions","organizations_url":"https://api.github.com/users/vnitinv/orgs","repos_url":"https://api.github.com/users/vnitinv/repos","events_url":"https://api.github.com/users/vnitinv/events{/privacy}","received_events_url":"https://api.github.com/users/vnitinv/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2016-06-10T11:38:48Z","updated_at":"2016-09-07T09:42:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-27T17:09:19Z","updated_at":"2016-09-07T09:42:15Z","closed_at":"2016-09-07T09:42:15Z","body":"When a Table is instantiated from a device instance, the XML RPC response is parsed, and XML namespaces are stripped from the response. When a Table is instantiated from a file containing XML, using the path argument, XML namespaces are not stripped. This causes things to fail unless the user manually strips the XML namespaces.\r\n\r\nI feel that this should not be necessary. XML namespaces should be stripped in both cases so that the behavior of Tables/Views remains consistent in both cases.\r\n\r\nI believe this MAY be as simple as changing lib/jnpr/junos/factory/optable.py:47 from:\r\n\r\nself.xml = etree.parse(self._path).getroot()\r\n\r\nto:\r\n\r\nself.xml = remove_namespaces(etree.parse(self._path).getroot())\r\n"}}
{"actor":{"display_login":"vnitinv"}}