EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 9cf0e7cc authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

capitalize collection env & optional bucket

parent 850a6d38
No related branches found
No related tags found
No related merge requests found
...@@ -349,6 +349,12 @@ if __name__ == "__main__": ...@@ -349,6 +349,12 @@ if __name__ == "__main__":
"Path to object holding tar archive file of product." "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( parser.add_argument(
"--replace", action="store_true", "--replace", action="store_true",
help=( help=(
...@@ -380,15 +386,17 @@ if __name__ == "__main__": ...@@ -380,15 +386,17 @@ if __name__ == "__main__":
setup_logging(arg_values.verbosity) setup_logging(arg_values.verbosity)
collection = os.environ.get('Collection') collection = os.environ.get('COLLECTION')
if collection is None: if collection is None:
logger.critical("Collection environment variable not set.") logger.critical("Collection environment variable not set.")
sys.exit(1) sys.exit(1)
upload_container = os.environ.get('UPLOAD_CONTAINER') upload_container = arg_values.upload_container
if upload_container is None: if upload_container is None:
logger.critical("UPLOAD_CONTAINER environment variable not set.") upload_container = os.environ.get('UPLOAD_CONTAINER')
sys.exit(1) if upload_container is None:
logger.critical("UPLOAD_CONTAINER environment variable not set.")
sys.exit(1)
if arg_values.mode == "standard": if arg_values.mode == "standard":
preprocessor( preprocessor(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment