EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
ESA
PRISM
VS
Commits
9cf0e7cc
Commit
9cf0e7cc
authored
5 years ago
by
Mussab Abdalla
Browse files
Options
Downloads
Patches
Plain Diff
capitalize collection env & optional bucket
parent
850a6d38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preprocessor/preprocessor.py
+12
-4
12 additions, 4 deletions
preprocessor/preprocessor.py
with
12 additions
and
4 deletions
preprocessor/preprocessor.py
+
12
−
4
View file @
9cf0e7cc
...
...
@@ -349,6 +349,12 @@ if __name__ == "__main__":
"
Path to object holding tar archive file of product.
"
)
)
parser
.
add_argument
(
"
--upload-container
"
,
default
=
None
,
help
=
(
"
The name of the swift container where the result is uploaded.
"
)
)
parser
.
add_argument
(
"
--replace
"
,
action
=
"
store_true
"
,
help
=
(
...
...
@@ -380,15 +386,17 @@ if __name__ == "__main__":
setup_logging
(
arg_values
.
verbosity
)
collection
=
os
.
environ
.
get
(
'
C
ollection
'
)
collection
=
os
.
environ
.
get
(
'
C
OLLECTION
'
)
if
collection
is
None
:
logger
.
critical
(
"
Collection environment variable not set.
"
)
sys
.
exit
(
1
)
upload_container
=
os
.
environ
.
get
(
'
UPLOAD_CONTAINER
'
)
upload_container
=
arg_values
.
upload_container
if
upload_container
is
None
:
logger
.
critical
(
"
UPLOAD_CONTAINER environment variable not set.
"
)
sys
.
exit
(
1
)
upload_container
=
os
.
environ
.
get
(
'
UPLOAD_CONTAINER
'
)
if
upload_container
is
None
:
logger
.
critical
(
"
UPLOAD_CONTAINER environment variable not set.
"
)
sys
.
exit
(
1
)
if
arg_values
.
mode
==
"
standard
"
:
preprocessor
(
...
...
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