Skip to content

Commit

Permalink
Fix endpoint param in s3 fsspec connector
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed May 16, 2024
1 parent 262009b commit cdd2af9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/cli/base/dest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def cmd(self, ctx: click.Context, **options) -> None:
)
pipeline.run()
except Exception as e:
logger.error(e, exc_info=True)
logger.error(f"failed to run destination command {self.cmd_name}: {e}", exc_info=True)
raise click.ClickException(str(e)) from e

def get_cmd(self) -> click.Command:
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/cli/base/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def cmd(self, ctx: click.Context, **options) -> None:
pipeline = self.get_pipline(src=self.cmd_name, source_options=options)
pipeline.run()
except Exception as e:
logger.error(e, exc_info=True)
logger.error(f"failed to run source command {self.cmd_name}: {e}", exc_info=True)
raise click.ClickException(str(e)) from e

def get_cmd(self) -> click.Group:
Expand Down
2 changes: 1 addition & 1 deletion unstructured/ingest/v2/processes/connectors/fsspec/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class S3ConnectionConfig(FsspecConnectionConfig):
def get_access_config(self) -> dict[str, Any]:
access_configs: dict[str, Any] = {"anon": self.anonymous}
if self.endpoint_url:
access_configs["endpoint"] = self.endpoint_url
access_configs["endpoint_url"] = self.endpoint_url

access_configs.update(self.access_config.to_dict())
return access_configs
Expand Down

0 comments on commit cdd2af9

Please sign in to comment.