Skip to content

Commit 1ad3c41

Browse files
committed
PR comments
1 parent 22e0eec commit 1ad3c41

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mmv1/templates/terraform/iam_policy.go.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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 "," }} },

0 commit comments

Comments
 (0)