Skip to content

Commit

Permalink
Fix bug in security.bootstrap_security_policies (#261)
Browse files Browse the repository at this point in the history
Co-authored-by: Pieter De Maeyer <[email protected]>
  • Loading branch information
PieterDM and Pieter De Maeyer authored Aug 8, 2022
1 parent 9f037e0 commit bd271ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipyapi/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def bootstrap_security_policies(service, user_identity=None,
assert service in _valid_services, "service not in %s" % _valid_services
valid_ident_obj = [nipyapi.nifi.UserEntity, nipyapi.registry.User]
if user_identity is not None:
assert user_identity in valid_ident_obj
assert type(user_identity) in valid_ident_obj
if 'nifi' in service:
rpg_id = nipyapi.canvas.get_root_pg_id()
if user_identity is None and group_identity is None:
Expand Down

0 comments on commit bd271ec

Please sign in to comment.