Skip to content

libnetwork: correctly assign free names#1561

Merged
openshift-merge-robot merged 1 commit intocontainers:mainfrom
Luap99:mv-names
Jul 13, 2023
Merged

libnetwork: correctly assign free names#1561
openshift-merge-robot merged 1 commit intocontainers:mainfrom
Luap99:mv-names

Conversation

@Luap99
Copy link
Member

@Luap99 Luap99 commented Jul 13, 2023

If no name is given we have to set a free one, however the logic was
broken since the beginning due some copy paste. This function as the
name suggests must return all network names so we know to not reuse an
existing one.

I just found this by accident no user ever reported this in almost two
years. This likely means no one uses the automatic names and everybody
set's their own name on the cli instead.

If no name is given we have to set a free one, however the logic was
broken since the beginning due some copy paste. This function as the
name suggests must return all network names so we know to not reuse an
existing one.

I just found this by accident no user ever reported this in almost two
years. This likely means no one uses the automatic names and everybody
set's their own name on the cli instead.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, vrothberg

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented Jul 13, 2023

/lgtm
This should be back ported

@openshift-ci openshift-ci bot added the lgtm label Jul 13, 2023
@openshift-merge-robot openshift-merge-robot merged commit 37ee651 into containers:main Jul 13, 2023
@vrothberg
Copy link
Member

/cherry-pick v4.6

@Luap99 Luap99 deleted the mv-names branch July 17, 2023 07:07
@vrothberg
Copy link
Member

/cherry-pick v4.6

D'oh. Just realized it's a c/common PR.

@Luap99
Copy link
Member Author

Luap99 commented Jul 17, 2023

No user complained in the last two years, I don't think we need to do the extra work to backport it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants