Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Manifest Ingestion DAG
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Data Flow
Data Ingestion
Manifest Ingestion DAG
Commits
d2cebc9c
Commit
d2cebc9c
authored
4 years ago
by
Yan Sushchynski (EPAM)
Committed by
Siarhei Khaletski (EPAM)
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Handle file variable fix
parent
008c172b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!24
Ingestion updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dags/libs/handle_file.py
+3
-3
3 additions, 3 deletions
src/dags/libs/handle_file.py
with
3 additions
and
3 deletions
src/dags/libs/handle_file.py
+
3
−
3
View file @
d2cebc9c
...
...
@@ -75,12 +75,12 @@ class FileHandler(HeadersMixin):
self
.
token_refresher
=
token_refresher
self
.
_blob_storage_client
=
blob_storage_client
or
blob_storage
.
get_client
()
def
_get_file_from_preload_path
(
self
,
preload_path
:
str
,
def
_get_file_from_preload_path
(
self
,
preload_
file_
path
:
str
,
file
:
FileLikeObject
)
->
Tuple
[
FileLikeObject
,
str
]:
"""
Get file from a preloaded path.
:param preload_path: Full URI of the file to obtain
:type preload_path: str
:param preload_
file_
path: Full URI of the file to obtain
:type preload_
file_
path: str
:return: Raw file data and content-type
:rtype: Tuple[FileLikeObject, str]
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment