Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iderha-cwl-wes-workflows
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
External wiki
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francois Ancien
iderha-cwl-wes-workflows
Commits
cfca8f3f
Commit
cfca8f3f
authored
10 months ago
by
Francois Ancien
Browse files
Options
Downloads
Patches
Plain Diff
Correcting misunderstanding over content of aggregate-remote.py input file
parent
18887027
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflows/resources/aggregate-remote.py
+2
-6
2 additions, 6 deletions
workflows/resources/aggregate-remote.py
with
2 additions
and
6 deletions
workflows/resources/aggregate-remote.py
+
2
−
6
View file @
cfca8f3f
...
...
@@ -15,13 +15,9 @@ def main(args=None):
parsed
=
parser
.
parse_args
(
args
)
data
=
None
ftp_path
=
None
with
open
(
parsed
.
input
,
"
r
"
)
as
f
:
try
:
data
=
json
.
load
(
f
)
ftp_path
=
data
[
"
FTP_DATA_ADDRESS
"
]
except
json
.
JSONDecodeError
as
e
:
raise
json
.
JSONDecodeError
(
f
"
Impossible to parse data in
{
parsed
.
input
}
. Not a valid json.
"
)
from
e
lines
=
f
.
readlines
()
ftp_path
=
lines
[
0
]
# Getting data from ftp source
ftp_host
=
"
http://ftp-upload-service/api/ftp/upload
"
...
...
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