You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are able to repro it on the latest version
Search the existing issues.
Steps to reproduce
If you try to parse yum repolist --all | ConvertFrom-TextTable -Skip 4 it will error.
Here is the output from yum.
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
This system is not registered with an entitlement server. You can use subscription-manager to register.
repo id repo name status
packages-microsoft-com-prod packages-microsoft-com-prod enabled
ubi-8-appstream-debug-rpms Red Hat Universal Base Image 8 (Debug RPMs) - AppStream disabled
ubi-8-appstream-rpms Red Hat Universal Base Image 8 (RPMs) - AppStream enabled
ubi-8-appstream-source Red Hat Universal Base Image 8 (Source RPMs) - AppStream disabled
ubi-8-baseos-debug-rpms Red Hat Universal Base Image 8 (Debug RPMs) - BaseOS disabled
ubi-8-baseos-rpms Red Hat Universal Base Image 8 (RPMs) - BaseOS enabled
ubi-8-baseos-source Red Hat Universal Base Image 8 (Source RPMs) - BaseOS disabled
ubi-8-codeready-builder Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder disabled
ubi-8-codeready-builder-debug-rpms Red Hat Universal Base Image 8 (Debug RPMs) - CodeReady Builder disabled
ubi-8-codeready-builder-rpms Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder enabled
ubi-8-codeready-builder-source Red Hat Universal Base Image 8 (Source RPMs) - CodeReady Builder disabled
Expected behavior
parses
Actual behavior
ConvertFrom-TextTable: Cannot process argument because the value of argument "name" is not valid. Change the value of the "name" argument and run the operation again.
Error details
Exception : Type : System.Management.Automation.PSArgumentException ErrorRecord : Exception : Type : System.Management.Automation.ParentContainsErrorRecordException Message : Cannot process argument because the value of argument "name" is not valid. Change the value of the "name" argument and run the operation again. HResult : -2146233087 CategoryInfo : InvalidArgument: (:) [], ParentContainsErrorRecordException FullyQualifiedErrorId : Argument Message : Cannot process argument because the value of argument "name" is not valid. Change the value ofthe "name" argument and run the operation again. ParamName : name TargetSite : Void .ctor(System.String, System.Object) Source : System.Management.Automation HResult : -2147024809 StackTrace : at System.Management.Automation.PSNoteProperty..ctor(String name, Object value) at TextTableParser.ConvertTextTableCommand.GetPsObject(List`1 cInfos, String line, String[] columnHeaders) inD:\a\_work\1\s\TextUtility\src\code\TextTableParser.cs:line 242 at TextTableParser.ConvertTextTableCommand.Emit(String line) in D:\a\_work\1\s\TextUtility\src\code\TextTableParser.cs:line 167 at TextTableParser.ConvertTextTableCommand.EndProcessing() in D:\a\_work\1\s\TextUtility\src\code\TextTableParser.cs:line 150 at System.Management.Automation.CommandProcessorBase.Complete()CategoryInfo : InvalidArgument: (:) [ConvertFrom-TextTable], PSArgumentExceptionFullyQualifiedErrorId : Argument,TextTableParser.ConvertTextTableCommandInvocationInfo : MyCommand : ConvertFrom-TextTable ScriptLineNumber : 1 OffsetInLine : 22 HistoryId : 165 Line : yum repolist --all | ConvertFrom-TextTable -Skip 4 PositionMessage : At line:1 char:22 + yum repolist --all | ConvertFrom-TextTable -Skip 4 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : ConvertFrom-TextTable CommandOrigin : InternalScriptStackTrace : at <ScriptBlock>, <No file>: line 1
Environment data
7.4
Version
0.5.0
Visuals
No response
The text was updated successfully, but these errors were encountered:
ThomasNieto
changed the title
yum repolist --all fails
ConvertFrom-TextTable yum repolist --all fails
Jul 25, 2023
Prerequisites
Steps to reproduce
If you try to parse
yum repolist --all | ConvertFrom-TextTable -Skip 4
it will error.Here is the output from yum.
Expected behavior
parses
Actual behavior
ConvertFrom-TextTable: Cannot process argument because the value of argument "name" is not valid. Change the value of the "name" argument and run the operation again.
Error details
Environment data
7.4
Version
0.5.0
Visuals
No response
The text was updated successfully, but these errors were encountered: