From 9c41221b9ba903c48bb94173e0a9022d5d865b54 Mon Sep 17 00:00:00 2001 From: MaksimZhukov Date: Tue, 18 Feb 2020 17:05:00 +0300 Subject: [PATCH] Minor updates --- images.CI/build-image.ps1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/images.CI/build-image.ps1 b/images.CI/build-image.ps1 index dabbb0696..73455c021 100644 --- a/images.CI/build-image.ps1 +++ b/images.CI/build-image.ps1 @@ -26,7 +26,13 @@ $InstallPassword = [System.GUID]::NewGuid().ToString().ToUpper() packer validate -syntax-only $TemplatePath -$SensitiveData = @('OSType', 'StorageAccountLocation', 'OSDiskUri', 'OSDiskUriReadOnlySas', 'TemplateUri', 'TemplateUriReadOnlySas', ': ->') +$SensitiveData = @('OSType', + 'StorageAccountLocation', + 'OSDiskUri', + 'OSDiskUriReadOnlySas', + 'TemplateUri', + 'TemplateUriReadOnlySas', + ': ->') Write-Host "Build $Image VM" packer build -var "capture_name_prefix=$ResourcesNamePrefix" ` @@ -47,6 +53,6 @@ packer build -var "capture_name_prefix=$ResourcesNamePrefix" ` | Where-Object { #Filter sensitive data from Packer logs $currentString = $_ - $matchedString = $SensitiveData | Where-Object { $currentString -match $_ } - return $matchedString -eq $null + $sensitiveString = $SensitiveData | Where-Object { $currentString -match $_ } + $sensitiveString -eq $null } \ No newline at end of file