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:
Adam Young 2018-12-11 21:22:51 -05:00
parent ab96e33107
commit 78566e8286
1 changed files with 2 additions and 3 deletions

View File

@ -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)