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 {