From 9041744a6004ea2ca30a04b81b1df28f8612adcd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 11 Nov 2016 13:50:53 -0800 Subject: syz-gce: fix build Storage API seems to have changed. Switch to the new API. --- syz-gce/syz-gce.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/syz-gce/syz-gce.go b/syz-gce/syz-gce.go index 4d790ad05..17b0d4a04 100644 --- a/syz-gce/syz-gce.go +++ b/syz-gce/syz-gce.go @@ -276,10 +276,10 @@ func openFile(file string) (*storage.ObjectHandle, time.Time, error) { if !attrs.Deleted.IsZero() { return nil, time.Time{}, fmt.Errorf("file %v is deleted", file) } - f = f.WithConditions( - storage.IfGenerationMatch(attrs.Generation), - storage.IfMetaGenerationMatch(attrs.MetaGeneration), - ) + f = f.If(storage.Conditions{ + GenerationMatch: attrs.Generation, + MetagenerationMatch: attrs.MetaGeneration, + }) return f, attrs.Updated, nil } -- cgit mrf-deployment