From 6e0bf3d6ca04635e1d41b0a58c7433eacf9ef147 Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Tue, 24 Sep 2024 14:34:59 -0400 Subject: [PATCH] fix(config): sw-2956 display ints for ansible inventory (#1425) --- src/config/product.ansible.js | 4 ++-- src/services/rhsm/rhsmServices.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/product.ansible.js b/src/config/product.ansible.js index 7221d4d4b..b144b8fdd 100644 --- a/src/config/product.ansible.js +++ b/src/config/product.ansible.js @@ -281,7 +281,7 @@ const config = { cell: ({ [RHSM_API_PATH_METRIC_TYPES.MANAGED_NODES]: total } = {}) => translate('curiosity-inventory.measurement', { context: (total && 'value') || undefined, - total: (total && Number.parseFloat(total).toFixed(2)) || undefined, + total, testId: ( ) @@ -295,7 +295,7 @@ const config = { cell: ({ [RHSM_API_PATH_METRIC_TYPES.INSTANCE_HOURS]: total } = {}) => translate('curiosity-inventory.measurement', { context: (total && 'value') || undefined, - total: (total && Number.parseFloat(total).toFixed(2)) || undefined, + total, testId: ( ) diff --git a/src/services/rhsm/rhsmServices.js b/src/services/rhsm/rhsmServices.js index d54c88c94..5ec9cb079 100644 --- a/src/services/rhsm/rhsmServices.js +++ b/src/services/rhsm/rhsmServices.js @@ -1935,7 +1935,7 @@ const getInstancesInventoryGuests = (id, params = {}, options = {}) => { * "subscription_manager_id": "BBBBB-5b00-42fa-BBBBB-75801d45cc6d", * "display_name": "lorem.example.com", * "measurements": [ - * 4000, + * 0, * 50, * 10000.0000345678, * 3000,