Skip to content

Add nil checks in GetInstanceByNodeName() #173

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

Merged
merged 1 commit into from
Apr 5, 2018
Merged

Add nil checks in GetInstanceByNodeName() #173

merged 1 commit into from
Apr 5, 2018

Conversation

prydie
Copy link
Contributor

@prydie prydie commented Apr 5, 2018

Since the SDK upgrade the CCM would panic when either vnic.PublicIp or vnic.HostnameLabel were nil.

Fixes: #167

Previously the CCM would panic when vnic.PublicIp or vnic.HostnameLabel
were nil.

Fixes: #167
@prydie prydie requested a review from jhorwit2 April 5, 2018 15:08
@jhorwit2
Copy link
Member

jhorwit2 commented Apr 5, 2018

LGTM however there are a lot of other places we dereference pointers without nil checks. We should probably audit our usage to be more defensive.

@prydie prydie merged commit 9908ebf into master Apr 5, 2018
@prydie prydie deleted the ap/fix-167 branch April 5, 2018 15:11
@prydie prydie added this to the 0.3.2 milestone Apr 9, 2018
l-technicore pushed a commit to l-technicore/oci-cloud-controller-manager that referenced this pull request Jun 14, 2022
…m task/OKE-16774 to internal

* commit 'b53bb3c4abc113be229c65b17e0567109a0c8972':
  OKE-16774: Adding error condition when in transit is on and attachment type is iscsi
ayushverma14 pushed a commit to ayushverma14/oci-cloud-controller-manager that referenced this pull request Jul 18, 2022
Previously the CCM would panic when vnic.PublicIp or vnic.HostnameLabel
were nil.

Fixes: oracle#167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants