{"action":"closed","number":44500,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/44500","id":210093772,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMDkzNzcy","html_url":"https://github.com/ansible/ansible/pull/44500","diff_url":"https://github.com/ansible/ansible/pull/44500.diff","patch_url":"https://github.com/ansible/ansible/pull/44500.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/44500","number":44500,"state":"closed","locked":false,"title":"Module win_domain_computer fix delete computer with child","user":{"login":"Daniel-Sanchez-Fabregas","id":33929811,"node_id":"MDQ6VXNlcjMzOTI5ODEx","avatar_url":"https://avatars0.githubusercontent.com/u/33929811?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Sanchez-Fabregas","html_url":"https://github.com/Daniel-Sanchez-Fabregas","followers_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/followers","following_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/orgs","repos_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/repos","events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/received_events","type":"User","site_admin":false},"body":"##### SUMMARY\r\n<!--- Describe the change, including rationale and design decisions -->\r\nWhen a machine is in hyper-V an leaf object is created: CN=Windows Virtual Machine under the machine in AD. Remove-ADComputer gives an error: Remove-ADComputer : The directory service can perform the requested operation only on a leaf object.\r\n\r\nThis fix the problem\r\nGet-ADComputer \"Computername\" | remove-ADObject -Recursive\r\n\r\n<!--- If you are fixing an existing issue, please include \"Fixes #nnn\" in your\r\ncommit message and your description; but you should still explain what\r\nthe change does.-->\r\nFixes #44444\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module, plugin, task or feature -->\r\nwin_domain_computer\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes below -->\r\n```\r\nansible 2.6.3\r\n  config file = ~/.ansible.cfg\r\n  configured module search path = [u'~/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = ~/.local/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.15 (default, May 16 2018, 17:50:09) [GCC 8.1.1 20180502 (Red Hat 8.1.1-1)]\r\n\r\n```\r\n\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!--- Include additional information to help people understand the change here.\r\nFor bugs that don't have a linked bug report, a step-by-step reproduction\r\nof the problem is helpful. -->\r\nWorks for me, but I have no way to test it in `hyper-V`. \r\n\r\n<!--- Paste verbatim command output below, e.g. before and after your change -->\r\n```\r\n\r\n```\r\n","created_at":"2018-08-22T10:51:34Z","updated_at":"2018-08-27T05:54:17Z","closed_at":"2018-08-27T05:54:17Z","merged_at":"2018-08-27T05:54:17Z","merge_commit_sha":"af49627a08645051d85f0747f44f4622b35a75b3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":513652538,"node_id":"MDU6TGFiZWw1MTM2NTI1Mzg=","url":"https://api.github.com/repos/ansible/ansible/labels/core_review","name":"core_review","color":"ededed","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false},{"id":108461331,"node_id":"MDU6TGFiZWwxMDg0NjEzMzE=","url":"https://api.github.com/repos/ansible/ansible/labels/windows","name":"windows","color":"777777","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/44500/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/44500/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/44500/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/b6af40a1cc7a0796cdbe96ebfc78b2ad501c0fdb","head":{"label":"Daniel-Sanchez-Fabregas:patch_win_domain_computer.ps1_44444","ref":"patch_win_domain_computer.ps1_44444","sha":"b6af40a1cc7a0796cdbe96ebfc78b2ad501c0fdb","user":{"login":"Daniel-Sanchez-Fabregas","id":33929811,"node_id":"MDQ6VXNlcjMzOTI5ODEx","avatar_url":"https://avatars0.githubusercontent.com/u/33929811?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Sanchez-Fabregas","html_url":"https://github.com/Daniel-Sanchez-Fabregas","followers_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/followers","following_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/orgs","repos_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/repos","events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/received_events","type":"User","site_admin":false},"repo":{"id":120890170,"node_id":"MDEwOlJlcG9zaXRvcnkxMjA4OTAxNzA=","name":"ansible","full_name":"Daniel-Sanchez-Fabregas/ansible","owner":{"login":"Daniel-Sanchez-Fabregas","id":33929811,"node_id":"MDQ6VXNlcjMzOTI5ODEx","avatar_url":"https://avatars0.githubusercontent.com/u/33929811?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Sanchez-Fabregas","html_url":"https://github.com/Daniel-Sanchez-Fabregas","followers_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/followers","following_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/orgs","repos_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/repos","events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Sanchez-Fabregas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Daniel-Sanchez-Fabregas/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible","forks_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/forks","keys_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/teams","hooks_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/hooks","issue_events_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/events","assignees_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/tags","blobs_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/languages","stargazers_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/stargazers","contributors_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/contributors","subscribers_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/subscribers","subscription_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/subscription","commits_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/merges","archive_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/downloads","issues_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/labels{/name}","releases_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/Daniel-Sanchez-Fabregas/ansible/deployments","created_at":"2018-02-09T10:10:25Z","updated_at":"2018-08-24T09:59:34Z","pushed_at":"2018-08-24T10:31:03Z","git_url":"git://github.com/Daniel-Sanchez-Fabregas/ansible.git","ssh_url":"git@github.com:Daniel-Sanchez-Fabregas/ansible.git","clone_url":"https://github.com/Daniel-Sanchez-Fabregas/ansible.git","svn_url":"https://github.com/Daniel-Sanchez-Fabregas/ansible","homepage":"https://www.ansible.com/","size":127336,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"ec2aa1258143c5d2bb2878b2ad7f3c934ea6dbdc","user":{"login":"ansible","id":1507452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDc0NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM4OTY0","name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MDc0NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1507452?v=4","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications — automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com/ansible/","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible/deployments","created_at":"2012-03-06T14:58:02Z","updated_at":"2018-08-27T03:16:27Z","pushed_at":"2018-08-27T05:54:17Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"https://www.ansible.com/","size":138111,"stargazers_count":32199,"watchers_count":32199,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12535,"mirror_url":null,"archived":false,"open_issues_count":5381,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":12535,"open_issues":5381,"watchers":32199,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/44500"},"html":{"href":"https://github.com/ansible/ansible/pull/44500"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/44500"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/44500/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/44500/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/44500/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/b6af40a1cc7a0796cdbe96ebfc78b2ad501c0fdb"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jborean93","id":8462645,"node_id":"MDQ6VXNlcjg0NjI2NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/8462645?v=4","gravatar_id":"","url":"https://api.github.com/users/jborean93","html_url":"https://github.com/jborean93","followers_url":"https://api.github.com/users/jborean93/followers","following_url":"https://api.github.com/users/jborean93/following{/other_user}","gists_url":"https://api.github.com/users/jborean93/gists{/gist_id}","starred_url":"https://api.github.com/users/jborean93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jborean93/subscriptions","organizations_url":"https://api.github.com/users/jborean93/orgs","repos_url":"https://api.github.com/users/jborean93/repos","events_url":"https://api.github.com/users/jborean93/events{/privacy}","received_events_url":"https://api.github.com/users/jborean93/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":5,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"jborean93"}}