{"action":"opened","number":39887,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/39887","id":186816301,"html_url":"https://github.com/ansible/ansible/pull/39887","diff_url":"https://github.com/ansible/ansible/pull/39887.diff","patch_url":"https://github.com/ansible/ansible/pull/39887.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/39887","number":39887,"state":"open","locked":false,"title":"win_template: fix issue where dest was specified as a directory","user":{"login":"jborean93","id":8462645,"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},"body":"##### SUMMARY\r\nWhen using win_template to template a file to a dest directory, it will create a destination file with the filename of `source` when dest is a directory while it will fail on the 2nd task if dest is a directory with a trailing `\\`. This should also be backported to stable-2.5 once merged into devel.\r\n\r\nFixes https://github.com/ansible/ansible/issues/39886\r\n\r\n##### ISSUE TYPE\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\nwin_template\r\n\r\n##### ANSIBLE VERSION\r\n```\r\ndevel\r\n```","created_at":"2018-05-09T04:43:43Z","updated_at":"2018-05-09T04:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/39887/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/39887/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/39887/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/9bc5c80b1aad3ae8bf11633cf7bb33e668b24d33","head":{"label":"jborean93:win_template-dest-dir","ref":"win_template-dest-dir","sha":"9bc5c80b1aad3ae8bf11633cf7bb33e668b24d33","user":{"login":"jborean93","id":8462645,"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},"repo":{"id":72729201,"name":"ansible","full_name":"jborean93/ansible","owner":{"login":"jborean93","id":8462645,"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},"private":false,"html_url":"https://github.com/jborean93/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/jborean93/ansible","forks_url":"https://api.github.com/repos/jborean93/ansible/forks","keys_url":"https://api.github.com/repos/jborean93/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jborean93/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jborean93/ansible/teams","hooks_url":"https://api.github.com/repos/jborean93/ansible/hooks","issue_events_url":"https://api.github.com/repos/jborean93/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/jborean93/ansible/events","assignees_url":"https://api.github.com/repos/jborean93/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/jborean93/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/jborean93/ansible/tags","blobs_url":"https://api.github.com/repos/jborean93/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jborean93/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jborean93/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/jborean93/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jborean93/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/jborean93/ansible/languages","stargazers_url":"https://api.github.com/repos/jborean93/ansible/stargazers","contributors_url":"https://api.github.com/repos/jborean93/ansible/contributors","subscribers_url":"https://api.github.com/repos/jborean93/ansible/subscribers","subscription_url":"https://api.github.com/repos/jborean93/ansible/subscription","commits_url":"https://api.github.com/repos/jborean93/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/jborean93/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/jborean93/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/jborean93/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/jborean93/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/jborean93/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jborean93/ansible/merges","archive_url":"https://api.github.com/repos/jborean93/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jborean93/ansible/downloads","issues_url":"https://api.github.com/repos/jborean93/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/jborean93/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/jborean93/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/jborean93/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jborean93/ansible/labels{/name}","releases_url":"https://api.github.com/repos/jborean93/ansible/releases{/id}","deployments_url":"https://api.github.com/repos/jborean93/ansible/deployments","created_at":"2016-11-03T09:27:23Z","updated_at":"2018-05-08T21:54:41Z","pushed_at":"2018-05-09T04:41:40Z","git_url":"git://github.com/jborean93/ansible.git","ssh_url":"git@github.com:jborean93/ansible.git","clone_url":"https://github.com/jborean93/ansible.git","svn_url":"https://github.com/jborean93/ansible","homepage":"http://ansible.com/","size":108715,"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":1,"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"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"ea489b3f336638e8f8781c631725f5a8f1145eaf","user":{"login":"ansible","id":1507452,"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,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"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-05-09T04:43:09Z","pushed_at":"2018-05-09T04:33:11Z","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":121755,"stargazers_count":30100,"watchers_count":30100,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11160,"mirror_url":null,"archived":false,"open_issues_count":5034,"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"},"forks":11160,"open_issues":5034,"watchers":30100,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/39887"},"html":{"href":"https://github.com/ansible/ansible/pull/39887"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/39887"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/39887/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/39887/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/39887/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/9bc5c80b1aad3ae8bf11633cf7bb33e668b24d33"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":111,"deletions":1,"changed_files":5}}
{"actor":{"display_login":"jborean93"}}