Skip to content

Commit

Permalink
refactor(engine): Add sentinel type for integration role
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed May 9, 2024
1 parent b627fe8 commit ead8e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracecat/integrations/_registry.py
Expand Up @@ -75,7 +75,7 @@ def wrapper(*args, **kwargs):
3. Clean up the environment after the function has executed.
"""
secret_objs: list[Secret] = []
role: Role = kwargs.pop("__role", None)
role: Role = kwargs.pop("__role", Role(type="service"))
with logger.contextualize(user_id=role.user_id, pid=os.getpid()):
try:
# Get secrets from the secrets API
Expand Down

0 comments on commit ead8e44

Please sign in to comment.