diff options
-rw-r--r-- | src/test/rgw/test_rgw_iam_policy.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/rgw/test_rgw_iam_policy.cc b/src/test/rgw/test_rgw_iam_policy.cc index 7751b086898..7738869ff37 100644 --- a/src/test/rgw/test_rgw_iam_policy.cc +++ b/src/test/rgw/test_rgw_iam_policy.cc @@ -109,7 +109,10 @@ public: } bool is_identity(const flat_set<Principal>& ids) const override { - return ids.find(id) != ids.end(); + if (id.is_wildcard() && (!ids.empty())) { + return true; + } + return ids.find(id) != ids.end() || ids.find(Principal::wildcard()) != ids.end(); } }; |