We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97cbb0 commit 74a32ccCopy full SHA for 74a32cc
1 file changed
api_core/google/api_core/iam.py
@@ -431,8 +431,13 @@ def to_api_repr(self):
431
bindings = []
432
for binding in self._bindings:
433
if binding["members"]:
434
- binding["members"] = sorted(binding["members"])
435
- bindings.append(binding)
+ new_binding = {
+ "role": binding["role"],
436
+ "members": sorted(binding["members"])
437
+ }
438
+ if binding.get("condition"):
439
+ new_binding["condition"] = binding["condition"]
440
+ bindings.append(new_binding)
441
442
if bindings:
443
# Sort bindings by role
0 commit comments