File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ func (u *{{ $.ResourceName }}IamUpdater) SetResourceIamPolicy(policy *cloudresou
288288 return err
289289 }
290290
291- {{- if and $ .IamPolicy $ .IamPolicy.SendsUserProjectHeader }}
292291 headers := make(http.Header )
292+ {{- if and $ .IamPolicy $ .IamPolicy.SendsUserProjectHeader }}
293293 headers.Set (" x-goog-user-project" , project)
294294{{- end }}
295295
@@ -302,9 +302,7 @@ func (u *{{ $.ResourceName }}IamUpdater) SetResourceIamPolicy(policy *cloudresou
302302 RawURL: url,
303303 UserAgent: userAgent,
304304 Body: obj,
305- {{- if and $ .IamPolicy $ .IamPolicy.SendsUserProjectHeader }}
306305 Headers: headers,
307- {{- end }}
308306 Timeout: u.d.Timeout (schema.TimeoutCreate ),
309307{{- if $ .ErrorRetryPredicates }}
310308 ErrorRetryPredicates: []transport_tpg.RetryErrorPredicateFunc { {{ join $ .ErrorRetryPredicates " ," }} },
You can’t perform that action at this time.
0 commit comments