{"action":"opened","number":366,"pull_request":{"url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366","id":92375249,"html_url":"https://github.com/Bcfg2/bcfg2/pull/366","diff_url":"https://github.com/Bcfg2/bcfg2/pull/366.diff","patch_url":"https://github.com/Bcfg2/bcfg2/pull/366.patch","issue_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/366","number":366,"state":"open","locked":false,"title":"Client/Tools/POSIX: Avoid lxml features in Augeas","user":{"login":"0","id":140823,"avatar_url":"https://avatars.githubusercontent.com/u/140823?v=3","gravatar_id":"","url":"https://api.github.com/users/0","html_url":"https://github.com/0","followers_url":"https://api.github.com/users/0/followers","following_url":"https://api.github.com/users/0/following{/other_user}","gists_url":"https://api.github.com/users/0/gists{/gist_id}","starred_url":"https://api.github.com/users/0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0/subscriptions","organizations_url":"https://api.github.com/users/0/orgs","repos_url":"https://api.github.com/users/0/repos","events_url":"https://api.github.com/users/0/events{/privacy}","received_events_url":"https://api.github.com/users/0/received_events","type":"User","site_admin":false},"body":"If I don't have lxml installed on the client, I get the following:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/Bcfg2/Client/Tools/__init__.py\", line 201, in Inventory\r\n    states[entry] = func(entry, mods)\r\n  File \"/usr/lib/python2.7/dist-packages/Bcfg2/Client/Tools/POSIX/__init__.py\", line 94, in VerifyPath\r\n    ret = self._handlers[entry.get(\"type\")].verify(entry, modlist)\r\n  File \"/usr/lib/python2.7/dist-packages/Bcfg2/Client/Tools/POSIX/Augeas.py\", line 248, in verify\r\n    for cmd in self.get_commands(entry):\r\n  File \"/usr/lib/python2.7/dist-packages/Bcfg2/Client/Tools/POSIX/Augeas.py\", line 233, in get_commands\r\n    for cmd in entry.iterchildren():\r\nAttributeError: 'Element' object has no attribute 'iterchildren'\r\n```\r\n\r\nThis patch removes calls to `getparent` and `iterchildren` from the Augeas client tool, since they are specific to lxml and may be unavailable.","created_at":"2016-11-04T16:43:45Z","updated_at":"2016-11-04T16:43:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366/commits","review_comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366/comments","review_comment_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/366/comments","statuses_url":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/fbabeed81b7a55d9d27cc31fc8094d72418d1d3d","head":{"label":"0:augeas-lxml","ref":"augeas-lxml","sha":"fbabeed81b7a55d9d27cc31fc8094d72418d1d3d","user":{"login":"0","id":140823,"avatar_url":"https://avatars.githubusercontent.com/u/140823?v=3","gravatar_id":"","url":"https://api.github.com/users/0","html_url":"https://github.com/0","followers_url":"https://api.github.com/users/0/followers","following_url":"https://api.github.com/users/0/following{/other_user}","gists_url":"https://api.github.com/users/0/gists{/gist_id}","starred_url":"https://api.github.com/users/0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0/subscriptions","organizations_url":"https://api.github.com/users/0/orgs","repos_url":"https://api.github.com/users/0/repos","events_url":"https://api.github.com/users/0/events{/privacy}","received_events_url":"https://api.github.com/users/0/received_events","type":"User","site_admin":false},"repo":{"id":66671313,"name":"bcfg2","full_name":"0/bcfg2","owner":{"login":"0","id":140823,"avatar_url":"https://avatars.githubusercontent.com/u/140823?v=3","gravatar_id":"","url":"https://api.github.com/users/0","html_url":"https://github.com/0","followers_url":"https://api.github.com/users/0/followers","following_url":"https://api.github.com/users/0/following{/other_user}","gists_url":"https://api.github.com/users/0/gists{/gist_id}","starred_url":"https://api.github.com/users/0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0/subscriptions","organizations_url":"https://api.github.com/users/0/orgs","repos_url":"https://api.github.com/users/0/repos","events_url":"https://api.github.com/users/0/events{/privacy}","received_events_url":"https://api.github.com/users/0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/0/bcfg2","description":"Git clone of the Bcfg2 repository","fork":true,"url":"https://api.github.com/repos/0/bcfg2","forks_url":"https://api.github.com/repos/0/bcfg2/forks","keys_url":"https://api.github.com/repos/0/bcfg2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0/bcfg2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0/bcfg2/teams","hooks_url":"https://api.github.com/repos/0/bcfg2/hooks","issue_events_url":"https://api.github.com/repos/0/bcfg2/issues/events{/number}","events_url":"https://api.github.com/repos/0/bcfg2/events","assignees_url":"https://api.github.com/repos/0/bcfg2/assignees{/user}","branches_url":"https://api.github.com/repos/0/bcfg2/branches{/branch}","tags_url":"https://api.github.com/repos/0/bcfg2/tags","blobs_url":"https://api.github.com/repos/0/bcfg2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0/bcfg2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0/bcfg2/git/refs{/sha}","trees_url":"https://api.github.com/repos/0/bcfg2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0/bcfg2/statuses/{sha}","languages_url":"https://api.github.com/repos/0/bcfg2/languages","stargazers_url":"https://api.github.com/repos/0/bcfg2/stargazers","contributors_url":"https://api.github.com/repos/0/bcfg2/contributors","subscribers_url":"https://api.github.com/repos/0/bcfg2/subscribers","subscription_url":"https://api.github.com/repos/0/bcfg2/subscription","commits_url":"https://api.github.com/repos/0/bcfg2/commits{/sha}","git_commits_url":"https://api.github.com/repos/0/bcfg2/git/commits{/sha}","comments_url":"https://api.github.com/repos/0/bcfg2/comments{/number}","issue_comment_url":"https://api.github.com/repos/0/bcfg2/issues/comments{/number}","contents_url":"https://api.github.com/repos/0/bcfg2/contents/{+path}","compare_url":"https://api.github.com/repos/0/bcfg2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0/bcfg2/merges","archive_url":"https://api.github.com/repos/0/bcfg2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0/bcfg2/downloads","issues_url":"https://api.github.com/repos/0/bcfg2/issues{/number}","pulls_url":"https://api.github.com/repos/0/bcfg2/pulls{/number}","milestones_url":"https://api.github.com/repos/0/bcfg2/milestones{/number}","notifications_url":"https://api.github.com/repos/0/bcfg2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0/bcfg2/labels{/name}","releases_url":"https://api.github.com/repos/0/bcfg2/releases{/id}","deployments_url":"https://api.github.com/repos/0/bcfg2/deployments","created_at":"2016-08-26T18:41:45Z","updated_at":"2016-08-26T18:41:49Z","pushed_at":"2016-11-04T16:42:50Z","git_url":"git://github.com/0/bcfg2.git","ssh_url":"git@github.com:0/bcfg2.git","clone_url":"https://github.com/0/bcfg2.git","svn_url":"https://github.com/0/bcfg2","homepage":"http://bcfg2.org","size":15225,"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":"Bcfg2:master","ref":"master","sha":"a472e687840a12a20bb2c22875de6efad8ddc257","user":{"login":"Bcfg2","id":1238150,"avatar_url":"https://avatars.githubusercontent.com/u/1238150?v=3","gravatar_id":"","url":"https://api.github.com/users/Bcfg2","html_url":"https://github.com/Bcfg2","followers_url":"https://api.github.com/users/Bcfg2/followers","following_url":"https://api.github.com/users/Bcfg2/following{/other_user}","gists_url":"https://api.github.com/users/Bcfg2/gists{/gist_id}","starred_url":"https://api.github.com/users/Bcfg2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bcfg2/subscriptions","organizations_url":"https://api.github.com/users/Bcfg2/orgs","repos_url":"https://api.github.com/users/Bcfg2/repos","events_url":"https://api.github.com/users/Bcfg2/events{/privacy}","received_events_url":"https://api.github.com/users/Bcfg2/received_events","type":"Organization","site_admin":false},"repo":{"id":2905220,"name":"bcfg2","full_name":"Bcfg2/bcfg2","owner":{"login":"Bcfg2","id":1238150,"avatar_url":"https://avatars.githubusercontent.com/u/1238150?v=3","gravatar_id":"","url":"https://api.github.com/users/Bcfg2","html_url":"https://github.com/Bcfg2","followers_url":"https://api.github.com/users/Bcfg2/followers","following_url":"https://api.github.com/users/Bcfg2/following{/other_user}","gists_url":"https://api.github.com/users/Bcfg2/gists{/gist_id}","starred_url":"https://api.github.com/users/Bcfg2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bcfg2/subscriptions","organizations_url":"https://api.github.com/users/Bcfg2/orgs","repos_url":"https://api.github.com/users/Bcfg2/repos","events_url":"https://api.github.com/users/Bcfg2/events{/privacy}","received_events_url":"https://api.github.com/users/Bcfg2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bcfg2/bcfg2","description":"Git clone of the Bcfg2 repository","fork":false,"url":"https://api.github.com/repos/Bcfg2/bcfg2","forks_url":"https://api.github.com/repos/Bcfg2/bcfg2/forks","keys_url":"https://api.github.com/repos/Bcfg2/bcfg2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bcfg2/bcfg2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bcfg2/bcfg2/teams","hooks_url":"https://api.github.com/repos/Bcfg2/bcfg2/hooks","issue_events_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/events{/number}","events_url":"https://api.github.com/repos/Bcfg2/bcfg2/events","assignees_url":"https://api.github.com/repos/Bcfg2/bcfg2/assignees{/user}","branches_url":"https://api.github.com/repos/Bcfg2/bcfg2/branches{/branch}","tags_url":"https://api.github.com/repos/Bcfg2/bcfg2/tags","blobs_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/{sha}","languages_url":"https://api.github.com/repos/Bcfg2/bcfg2/languages","stargazers_url":"https://api.github.com/repos/Bcfg2/bcfg2/stargazers","contributors_url":"https://api.github.com/repos/Bcfg2/bcfg2/contributors","subscribers_url":"https://api.github.com/repos/Bcfg2/bcfg2/subscribers","subscription_url":"https://api.github.com/repos/Bcfg2/bcfg2/subscription","commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bcfg2/bcfg2/contents/{+path}","compare_url":"https://api.github.com/repos/Bcfg2/bcfg2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bcfg2/bcfg2/merges","archive_url":"https://api.github.com/repos/Bcfg2/bcfg2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bcfg2/bcfg2/downloads","issues_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues{/number}","pulls_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls{/number}","milestones_url":"https://api.github.com/repos/Bcfg2/bcfg2/milestones{/number}","notifications_url":"https://api.github.com/repos/Bcfg2/bcfg2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bcfg2/bcfg2/labels{/name}","releases_url":"https://api.github.com/repos/Bcfg2/bcfg2/releases{/id}","deployments_url":"https://api.github.com/repos/Bcfg2/bcfg2/deployments","created_at":"2011-12-03T14:26:50Z","updated_at":"2016-08-28T08:02:40Z","pushed_at":"2016-11-04T16:43:45Z","git_url":"git://github.com/Bcfg2/bcfg2.git","ssh_url":"git@github.com:Bcfg2/bcfg2.git","clone_url":"https://github.com/Bcfg2/bcfg2.git","svn_url":"https://github.com/Bcfg2/bcfg2","homepage":"http://bcfg2.org","size":18659,"stargazers_count":79,"watchers_count":79,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":32,"forks":64,"open_issues":32,"watchers":79,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366"},"html":{"href":"https://github.com/Bcfg2/bcfg2/pull/366"},"issue":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/issues/366"},"comments":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/issues/366/comments"},"review_comments":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366/comments"},"review_comment":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/366/commits"},"statuses":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/fbabeed81b7a55d9d27cc31fc8094d72418d1d3d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":14,"changed_files":1}}
{"actor":{"display_login":"0"}}