(self, bundle_id)
| 52 | raise ValueError(f"error loading credentials from input: {e}") |
| 53 | |
| 54 | def load_default(self, bundle_id): |
| 55 | try: |
| 56 | from app.cache import get_bundle |
| 57 | |
| 58 | default_credentials = get_bundle(bundle_id).allowed_credential_names() |
| 59 | for name in default_credentials: |
| 60 | self.credentials[name] = load_str_env(name, required=True) |
| 61 | return self |
| 62 | except Exception as e: |
| 63 | raise ValueError(f"error loading credentials from env: {e}") |
| 64 | |
| 65 | def to_dict(self, bundle_id): |
| 66 | from app.cache import get_bundle |
no test coverage detected