Skip to content

Commit 4b28bac

Browse files
Update Canary.Tests.ps1
1 parent 1005278 commit 4b28bac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CanaryValidator/Canary.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ param (
2828
[parameter(HelpMessage="Local path where the windows ISO is stored")]
2929
[Parameter(ParameterSetName="default", Mandatory=$false)]
3030
[Parameter(ParameterSetName="tenant", Mandatory=$false)]
31-
[ValidateNotNullOrEmpty()]
31+
[ValidateScript({Test-Path -Path $_})]
3232
[string]$WindowsISOPath,
3333
[parameter(HelpMessage="Fully qualified domain name of the azure stack environment. Ex: contoso.com")]
3434
[Parameter(ParameterSetName="default", Mandatory=$false)]
@@ -150,7 +150,7 @@ while ($runCount -le $NumberOfIterations)
150150
}
151151
}
152152

153-
if ($WindowsISOPath -and (Test-Path -Path $WindowsISOPath))
153+
if ($WindowsISOPath)
154154
{
155155
Invoke-Usecase -Name 'UploadWindows2016ImageToPIR' -Description "Uploads a windows server 2016 image to the PIR" -UsecaseBlock `
156156
{

0 commit comments

Comments
 (0)