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

B OpenNebula/one#6701: Fix total_mb in s3/monitor (#3218)

* Fixes 02e0fcedfd63254af6d2f0ad6d5da75da39194f7

(cherry picked from commit be6bcf877d34926a64ec6aff6380482b94d90561)
This commit is contained in:
Pavel Czerný 2024-09-09 14:01:48 +02:00 committed by Ruben S. Montero
parent ab0badcb1c
commit 027b03f38a
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -78,7 +78,7 @@ access_key_id = xpath(xml, 'MARKETPLACE/TEMPLATE/ACCESS_KEY_ID')
secret_access_key = xpath(xml, 'MARKETPLACE/TEMPLATE/SECRET_ACCESS_KEY')
bucket = xpath(xml, 'MARKETPLACE/TEMPLATE/BUCKET')
region = xpath(xml, 'MARKETPLACE/TEMPLATE/REGION')
total_mb = xpath(xml, 'MARKETPLACE/TEMPLATE/TOTAL_MB').to_i || TOTAL_MB_DEFAULT
total_mb = (xpath(xml, 'MARKETPLACE/TEMPLATE/TOTAL_MB') || TOTAL_MB_DEFAULT).to_i
# optional
signature_version = xpath(xml, 'MARKETPLACE/TEMPLATE/SIGNATURE_VERSION')