Skip to content

Commit

Permalink
fix: enable arg & kwarg passing to superclass for sub agents
Browse files Browse the repository at this point in the history
  • Loading branch information
onecrazygenius committed Nov 28, 2024
1 parent e2d0623 commit bce6617
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/python/src/bailo/core/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@ def __init__(
cert: str,
key: str,
auth: str,
*args,
**kwargs
):
"""Initiate an agent for PKI authentication.
:param cert: Path to cert file
:param key: Path to key file
:param auth: Path to certificate authority file
"""
super().__init__(verify=auth)
super().__init__(verify=auth, *args, **kwargs)

self.cert = cert
self.key = key
Expand All @@ -102,13 +104,16 @@ def __init__(
self,
access_key: str | None = None,
secret_key: str | None = None,
*args,
**kwargs,
):
"""Initiate an agent for API token authentication.
:param access_key: Access key
:param secret_key: Secret key
:param verify: Path to certificate authority file, or bool for SSL verification.
"""
super().__init__()
super().__init__(*args, **kwargs)

if access_key is None:
logger.info("Access key not provided. Trying other sources...")
Expand Down

0 comments on commit bce6617

Please sign in to comment.