From 6d166d75bc6eb9fd513b42738b19f348c8da84f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Wallstro=CC=88m?= Date: Mon, 19 Oct 2015 16:29:43 +0200 Subject: [PATCH] Fix: support for virtual directories in applications --- .../modules/extras/windows/win_iis_virtualdirectory.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_iis_virtualdirectory.ps1 b/lib/ansible/modules/extras/windows/win_iis_virtualdirectory.ps1 index 3f2ab692b42..44854ff09b4 100644 --- a/lib/ansible/modules/extras/windows/win_iis_virtualdirectory.ps1 +++ b/lib/ansible/modules/extras/windows/win_iis_virtualdirectory.ps1 @@ -66,7 +66,11 @@ $directory_path = if($application) { } # Directory info -$directory = Get-WebVirtualDirectory -Site $site -Name $name +$directory = if($application) { + Get-WebVirtualDirectory -Site $site -Name $name -Application $application +} else { + Get-WebVirtualDirectory -Site $site -Name $name +} try { # Add directory