(self, bundle_id)
| 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 |
| 67 | |
| 68 | allowed_fields = get_bundle(bundle_id).allowed_credential_names() |
| 69 | res = {field: getattr(self, field, None) for field in allowed_fields} |
| 70 | return res |
| 71 | |
| 72 | |
| 73 | def validate_bundle_credentials(data: Dict) -> BundleCredentials: |
nothing calls this directly
no test coverage detected