Fix nil context staticcheck error.

This commit is contained in:
Ben Kochie 2018-03-22 00:08:36 +01:00 committed by Brian Brazil
parent 0f37c02343
commit 0d9fe18f5e
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) {
if len(d.filter) > 0 {
ilc = ilc.Filter(d.filter)
}
err = ilc.Pages(nil, func(l *compute.InstanceList) error {
err = ilc.Pages(context.TODO(), func(l *compute.InstanceList) error {
for _, inst := range l.Items {
if len(inst.NetworkInterfaces) == 0 {
continue