mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-23 22:26:27 +00:00
Properly close channel when monitor exits.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func CreateInstance(instance Instance, imageName string, imageProject string) (I
|
||||
|
||||
p, err := instance.ComputeService.Projects.Get(instance.Project).Do()
|
||||
if err != nil {
|
||||
return instance, fmt.Errorf("failed to get project info %q", instance.Project)
|
||||
return instance, fmt.Errorf("failed to get project info %q: %v", instance.Project, err)
|
||||
}
|
||||
|
||||
i := &compute.Instance{
|
||||
|
||||
Reference in New Issue
Block a user