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

B OpenNebula/one#6701: fix total_mb type in s3/monitor (#3213)

Signed-off-by: Neal Hansen <nhansen@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit 02e0fcedfd63254af6d2f0ad6d5da75da39194f7)
This commit is contained in:
Neal 2024-09-02 09:11:34 -06:00 committed by Tino Vázquez
parent 5d6b8571b0
commit 1a39dd0e8c
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

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') || TOTAL_MB_DEFAULT
total_mb = xpath(xml, 'MARKETPLACE/TEMPLATE/TOTAL_MB').to_i || TOTAL_MB_DEFAULT
# optional
signature_version = xpath(xml, 'MARKETPLACE/TEMPLATE/SIGNATURE_VERSION')