From b9ca7b686b94750fd78bb8aa104cbb6dabedeb65 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:22:01 +0200 Subject: [PATCH] fix software report output for packer (#7495) --- images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 | 3 ++- images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 052532459..120ed2327 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -182,7 +182,8 @@ function Get-NvmVersion { } function Get-PackerVersion { - return "Packer $(packer --version)" + $packerVersion = packer --version + return $packerVersion } function Get-PhantomJSVersion { diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 71437bbe4..ebe898c3f 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -142,7 +142,8 @@ function Get-OpenSSLVersion { } function Get-PackerVersion { - return "Packer $(packer --version)" + $packerVersion = packer --version + return $packerVersion } function Get-ParcelVersion {