Skip to content

Commit ef8df7b

Browse files
fix(cli): allow 'secrets list' to work outside the airbyte repo (#897)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 15542de commit ef8df7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

airbyte_cdk/cli/airbyte_cdk/_secrets.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ def list_(
235235
"""
236236
click.echo("Scanning secrets...", err=True)
237237

238-
connector_name, _ = resolve_connector_name_and_directory(connector)
238+
if connector and isinstance(connector, str) and "/" not in connector and "\\" not in connector:
239+
connector_name = connector
240+
else:
241+
connector_name, _ = resolve_connector_name_and_directory(connector)
239242
secrets: list[Secret] = _fetch_secret_handles( # type: ignore
240243
connector_name=connector_name,
241244
gcp_project_id=gcp_project_id,

0 commit comments

Comments
 (0)