From 6b697265223f13cd64d13327de8a24bd3c066e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Rosales?= Date: Thu, 21 Dec 2023 13:16:50 -0600 Subject: [PATCH] fix: completely deprecate gvc api url --- .../ideascale-importer/ideascale_importer/cli/snapshot.py | 3 +-- .../ideascale-importer/ideascale_importer/snapshot_importer.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/utilities/ideascale-importer/ideascale_importer/cli/snapshot.py b/utilities/ideascale-importer/ideascale_importer/cli/snapshot.py index 9530eb8678..eabff39495 100644 --- a/utilities/ideascale-importer/ideascale_importer/cli/snapshot.py +++ b/utilities/ideascale-importer/ideascale_importer/cli/snapshot.py @@ -25,7 +25,7 @@ def import_snapshot( catalyst_toolbox_path: str = typer.Option( default="catalyst-toolbox", envvar="CATALYST_TOOLBOX_PATH", help="Path to the catalyst-toolbox" ), - gvc_api_url: str = typer.Option(..., envvar="GVC_API_URL", help="URL of the GVC API"), + gvc_api_url: str = typer.Option(default="", envvar="GVC_API_URL", help="DEPRECATED. URL of the GVC API"), raw_snapshot_file: str = typer.Option( None, help=( @@ -102,7 +102,6 @@ async def inner(): network_ids=network_ids, snapshot_tool_path=snapshot_tool_path, catalyst_toolbox_path=catalyst_toolbox_path, - gvc_api_url=gvc_api_url, raw_snapshot_file=raw_snapshot_file, ssh_config=ssh_config, ) diff --git a/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py b/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py index 94d11cb406..c693062b99 100644 --- a/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py +++ b/utilities/ideascale-importer/ideascale_importer/snapshot_importer.py @@ -291,14 +291,12 @@ def __init__( network_ids: List[str], snapshot_tool_path: str, catalyst_toolbox_path: str, - gvc_api_url: str, raw_snapshot_file: Optional[str] = None, ssh_config: Optional[SSHConfig] = None, ): """Initialize the importer.""" self.snapshot_tool_path = snapshot_tool_path self.catalyst_toolbox_path = catalyst_toolbox_path - self.gvc_api_url = gvc_api_url self.eventdb_url = eventdb_url self.event_id = event_id