From 1a39dd0e8cbe7fdf6e52cfe00c1e55d6637294c9 Mon Sep 17 00:00:00 2001 From: Neal <92747003+onenhansen@users.noreply.github.com> Date: Mon, 2 Sep 2024 09:11:34 -0600 Subject: [PATCH] B OpenNebula/one#6701: fix total_mb type in s3/monitor (#3213) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Neal Hansen Co-authored-by: Tino Vázquez (cherry picked from commit 02e0fcedfd63254af6d2f0ad6d5da75da39194f7) --- 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 5eabcca56c..355a65b487 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') || 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')