Skip to content

Commit

Permalink
gcp - set-iam-policy base use resource metadata id field instead of '…
Browse files Browse the repository at this point in the history
…name' string (cloud-custodian#4691)
  • Loading branch information
PMitrafanau authored and kapilt committed Aug 27, 2019
1 parent a2e7605 commit 0e8da2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/c7n_gcp/c7n_gcp/actions/iampolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _verb_arguments(self, resource):
:param resource: the same as in `get_resource_params`
"""
return {'resource': resource['name']}
return {'resource': resource[self.manager.resource_type.id]}

def _add_bindings(self, existing_bindings, bindings_to_add):
"""
Expand Down

0 comments on commit 0e8da2c

Please sign in to comment.