mirror of
https://github.com/containers/podman.git
synced 2025-09-24 15:25:41 +08:00
Refactor parsing to not require --remote to be first
Use cobra.Command.FParseErrWhitelist to no longer require --remote to be the first argument in flags when using CLI Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -207,6 +207,10 @@ func WaitContainerReady(p PodmanTestCommon, id string, expStr string, timeout in
|
||||
|
||||
// OutputToString formats session output to string
|
||||
func (s *PodmanSession) OutputToString() string {
|
||||
if s == nil || s.Out == nil || s.Out.Contents() == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
fields := strings.Fields(string(s.Out.Contents()))
|
||||
return strings.Join(fields, " ")
|
||||
}
|
||||
|
Reference in New Issue
Block a user