-
Notifications
You must be signed in to change notification settings - Fork 284
✨ My594 revised #590 #594 wrong parameter for a user provider network #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @pramchan. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
|
Build succeeded.
|
|
@pramchan Code itself is good to me. You can make the title and PR comment better. This PR is to fix a bug so that 🐛 should be added instead of ✨ at the beginning of the title.
You do not need to write code itself here. Please summarize for example: Only issue is needed so that #590 is enough.
You do not need to write how to create your PR here. |
|
@jichenjc Code itself is good to me. So,could you update PR comment? Maintainer can update PR comment. |
|
@hidekazuna I think it would be better to ask @pramchan to update if he likes :) |
|
I want to merge this PR. /lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jichenjc, pramchan 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:
Approvers can indicate their approval by writing |
✨
What this PR does / why we need it:
To correct the previous #594swapping ifs precedence for error check after
https://github.com/pramchan/cluster-api-provider-openstack/blob/master/controllers/openstackcluster_controller.go#L300
to...
if err != nil {
return errors.Errorf("failed to find network: %v", err)
}
if len(networkList) == 0 {
return errors.Errorf("failed to find any network: %v", err)
}
if len(networkList) > 1 {
return errors.Errorf("failed to find only one network (result: %v): %v", networkList, err)
}
openStackCluster.Status.Network = &infrav1.Network{
ID: networkList[0].ID,
Name: networkList[0].Name,
}
Which issue(s) this PR fixes *:
Fixes #590 , #594
Special notes for your reviewer:
the way I did it is
git log --oneline
c528add (HEAD -> my594) revised #590 #594 wrong parameter for a user provider network
...
edited and added the controllers/openstackclsuater-controllers.go
...
git branch my594 c528add
git checkout my594
git push --repo https://github.com/pramchan/cluster-api-provider-openstack
remote: Create a pull request for 'my594' on GitHub by visiting:
remote: https://github.com/pramchan/cluster-api-provider-openstack/pull/new/my594
remote:
To https://github.com/pramchan/cluster-api-provider-openstack
Not sure if this will do the trick. If not will close open a fresh pull as this certainly turned to be challenging with so may in between parallel updates
.