openshift / must-gather

A client tool for gathering information about an operator managed component.
Apache License 2.0
104 stars 189 forks source link

sriov: Clean up `ip netns` output #387

Closed zeeke closed 1 year ago

zeeke commented 1 year ago

ip netns output can have trailing strings after the network namespace name, e.g.:

0e7432cc-0577-4e11-a88f-3ce8182dcd3f
f6f51cfd-02c5-45d7-917d-fc359d95df71
3ec15511-a387-40e6-a7c6-2de71b7bf880 (id: 27)
8ef1a9d8-be3f-44cb-9288-712eb3e4436f (id: 26)

Ensure every string after the space is filtered out.

Also, removing set -e statement from common.sh

openshift-ci[bot] commented 1 year ago

@zeeke: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
sferich888 commented 1 year ago

/lgtm

openshift-ci[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sferich888, zeeke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[collection-scripts/OWNERS](https://github.com/openshift/must-gather/blob/master/collection-scripts/OWNERS)~~ [sferich888] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment