From 38a9b4344ff14ec17d20ea94f4f82d7e884bb17c Mon Sep 17 00:00:00 2001 From: Vasilii Polikarpov <126792224+vpolikarpov-akvelon@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:29:31 +0200 Subject: [PATCH] [Ubuntu] Remove duplicated line with Python version from report (#8035) --- .../linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 6 ------ .../scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 1 - 2 files changed, 7 deletions(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 562f029d..02ddd0c6 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -99,12 +99,6 @@ function Get-PythonVersion { return $version } -function Get-Python3Version { - $result = Get-CommandResult "python3 --version" - $version = $result.Output | Take-OutputPart -Part 1 - return $version -} - function Get-PowershellVersion { return $(pwsh --version) | Take-OutputPart -Part 1 } diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index daa32686..9923937f 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -54,7 +54,6 @@ $languageAndRuntime.AddToolVersion("MSBuild", $(Get-MsbuildVersion)) $languageAndRuntime.AddToolVersion("Node.js", $(Get-NodeVersion)) $languageAndRuntime.AddToolVersion("Perl", $(Get-PerlVersion)) $languageAndRuntime.AddToolVersion("Python", $(Get-PythonVersion)) -$languageAndRuntime.AddToolVersion("Python3", $(Get-Python3Version)) $languageAndRuntime.AddToolVersion("Ruby", $(Get-RubyVersion)) $languageAndRuntime.AddToolVersion("Swift", $(Get-SwiftVersion))