We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ffc03 commit 3610819Copy full SHA for 3610819
1 file changed
CanaryValidator/Canary.Tests.ps1
@@ -28,6 +28,7 @@ param (
28
[parameter(HelpMessage="Local path where the windows ISO is stored")]
29
[Parameter(ParameterSetName="default", Mandatory=$true)]
30
[Parameter(ParameterSetName="tenant", Mandatory=$true)]
31
+ [ValidateScript({Test-Path -Path $_})]
32
[ValidateNotNullOrEmpty()]
33
[string]$WindowsISOPath,
34
[parameter(HelpMessage="Fully qualified domain name of the azure stack environment. Ex: contoso.com")]
@@ -150,7 +151,7 @@ while ($runCount -le $NumberOfIterations)
150
151
}
152
153
- if (Test-Path -Path $WindowsISOPath -ErrorAction SilentlyContinue)
154
+ if ($WindowsISOPath)
155
{
156
Invoke-Usecase -Name 'UploadWindows2016ImageToPIR' -Description "Uploads a windows server 2016 image to the PIR" -UsecaseBlock `
157
0 commit comments