Skip to content
Snippets Groups Projects
Unverified Commit 784f13d7 authored by Julian Tölle's avatar Julian Tölle Committed by GitHub
Browse files

fix: handle nil servers in InstanceV2 #398 (#402)

We did not properly handle nil pointers returned from `lookupServer`.

Based on the current usage in `k/cloud-provider` the methods are called
in these contexts:

- `InstanceShutdown` is only called for instances that actually do exist
(as verified by a prior call to `InstanceExists`)
- `InstanceMetadata` is called without verifying that the instance
exists, one call site accepts a nil InstanceMetadata, but the other does
not.
Closes #398
parent d8985264
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment