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__":
"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('Collection')
collection = os.environ.get('COLLECTION')
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(
......
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