Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable arg & kwarg passing to superclass for sub agents #1638

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/python/src/bailo/core/agent.py
PE39806 marked this conversation as resolved.
Show resolved Hide resolved
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,
onecrazygenius marked this conversation as resolved.
Show resolved Hide resolved
**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,
onecrazygenius marked this conversation as resolved.
Show resolved Hide resolved
**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.
PE39806 marked this conversation as resolved.
Show resolved Hide resolved
"""
super().__init__()
super().__init__(*args, **kwargs)

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