From 2309f23a2112b02194cdc2b4b48fd71df6b155da Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Tue, 16 Aug 2022 14:06:37 +0200 Subject: [PATCH] [Ubuntu] fix Software report for OpenShift CLI (#6080) --- images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index ca119f67..3092e7ec 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -264,7 +264,7 @@ function Get-NetlifyCliVersion { } function Get-OCCliVersion { - $ocVersion = oc version | Take-OutputPart -Part 2 | Take-OutputPart -Part 0 -Delimiter "-" + $ocVersion = oc version -o=json | jq -r '.releaseClientVersion' return "OpenShift CLI $ocVersion" }