GoogleCloudPlatform / GoogleCloudPlatform/compute-image-windows
instance_setup.ps1 report write-log error if $script:activate_instance_script_loc return is empty
- Dominant language
- PowerShell
- Stars
- 112
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Write-Log : Cannot bind argument to parameter 'msg' because it is an empty string.
At C:\Program Files\Google\Compute Engine\sysprep\instance_setup.ps1:251 char:15
+ Write-Log "$_"
+ ~~~~
+ CategoryInfo : InvalidData: (:) [Write-Log], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-Log
----------
Add where before the foreach solve the issue
& $script:activate_instance_script_loc | where {$_} | ForEach-Object {
Write-Log "$_"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.