From 027b03f38af2aea405cc58b421fff1de58442be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Mon, 9 Sep 2024 14:01:48 +0200 Subject: [PATCH] B OpenNebula/one#6701: Fix total_mb in s3/monitor (#3218) * Fixes 02e0fcedfd63254af6d2f0ad6d5da75da39194f7 (cherry picked from commit be6bcf877d34926a64ec6aff6380482b94d90561) --- src/market_mad/remotes/s3/monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/market_mad/remotes/s3/monitor b/src/market_mad/remotes/s3/monitor index 355a65b487..c5f733abaf 100755 --- a/src/market_mad/remotes/s3/monitor +++ b/src/market_mad/remotes/s3/monitor @@ -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')