Properly close channel when monitor exits.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2019-10-25 14:11:39 -07:00
parent 705cb01e0c
commit be7cc78aa0
9 changed files with 37 additions and 14 deletions
+1 -1
View File
@@ -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{