Merge pull request #1124 from foretagsplatsen/fix_application_in_win_iis_virtualdirectory

Fix: support for virtual directories in applications
This commit is contained in:
Brian Coca 2015-11-02 19:15:47 -05:00
commit 8a9d48a552

View file

@ -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