1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Allow configurable marketapp filename (#1035)

To avioid failure in tests while using the same bucket.
This commit is contained in:
Jan Orel 2021-03-28 22:23:40 +02:00 committed by GitHub
parent a75086d36b
commit 3dfc7218a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,12 +77,13 @@ bucket = xpath(xml, 'MARKETPLACE/TEMPLATE/BUCKET')
region = xpath(xml, 'MARKETPLACE/TEMPLATE/REGION')
# optional
app_prefix = xpath(xml, 'MARKETPLACE/TEMPLATE/APP_PREFIX') || 'marketapp'
signature_version = xpath(xml, 'MARKETPLACE/TEMPLATE/SIGNATURE_VERSION')
endpoint = xpath(xml, 'MARKETPLACE/TEMPLATE/ENDPOINT')
force_path_style = xpath(xml, 'MARKETPLACE/TEMPLATE/FORCE_PATH_STYLE')
read_length = xpath(xml, 'MARKETPLACE/TEMPLATE/READx_LENGTH')
name = "marketapp-#{id}"
name = "#{app_prefix}-#{id}"
source = "s3://#{bucket}/#{name}"
s3_config = {