Skip to content

Commit 0c4fec3

Browse files
fix(cli): allow 'secrets list' to work outside the airbyte repo
Co-Authored-By: AJ Steers <aj@airbyte.io>
1 parent 15542de commit 0c4fec3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)