Remove message about circular role inferences
While Cycles could be a problem, this code was detercting them even when there were none. If a role gets added twice, it was reporting an error, but that is possible from the case where two distinct prior add the same implied role. Just move on quietly. closes-bug 1803780 Change-Id: I804e5084f74ff4afdd582ece02ff2c833c5f6eb1
This commit is contained in:
parent
ab96e33107
commit
78566e8286
|
@ -668,9 +668,8 @@ class Manager(manager.Manager):
|
|||
_make_implied_ref_copy(
|
||||
next_ref, implied_role['implied_role_id']))
|
||||
if implied_ref in checked_role_refs:
|
||||
msg = ('Circular reference found '
|
||||
'role inference rules - %(prior_role_id)s.')
|
||||
LOG.error(msg, {'prior_role_id': next_ref['role_id']})
|
||||
# Avoid traversing a cycle
|
||||
continue
|
||||
else:
|
||||
ref_results.append(implied_ref)
|
||||
role_refs_to_check.append(implied_ref)
|
||||
|
|
Loading…
Reference in New Issue