Skip to content

Commit

Permalink
source-file-secure bump to 0.2.16 (#15528)
Browse files Browse the repository at this point in the history
* update Dockerfile version

* update init to accept additional args
  • Loading branch information
brianjlai authored and girarda committed Aug 11, 2022
1 parent 4f4a834 commit 22a3be4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-file-secure/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM airbyte/source-file:0.2.15
FROM airbyte/source-file:0.2.16

WORKDIR /airbyte/integration_code
COPY source_file_secure ./source_file_secure
Expand All @@ -9,5 +9,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.2.15
LABEL io.airbyte.version=0.2.16
LABEL io.airbyte.name=airbyte/source-file-secure
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class URLFileSecure(ParentURLFile):
This connector shouldn't work with local files.
"""

def __init__(self, url: str, provider: dict):
def __init__(self, url: str, provider: dict, binary=None, encoding=None):
storage_name = provider["storage"].lower()
if url.startswith("file://") or storage_name == LOCAL_STORAGE_NAME:
raise RuntimeError("the local file storage is not supported by this connector.")
super().__init__(url, provider)
super().__init__(url, provider, binary, encoding)


class SourceFileSecure(ParentSourceFile):
Expand Down

0 comments on commit 22a3be4

Please sign in to comment.