Skip to content

Commit

Permalink
fix(config): sw-2956 display ints for ansible inventory (#1425)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Sep 24, 2024
1 parent 68bf3a8 commit 6e0bf3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/product.ansible.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
<span data-test={`instances-cell-${RHSM_API_PATH_METRIC_TYPES.MANAGED_NODES}`} data-value={`${total}`} />
)
Expand All @@ -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: (
<span data-test={`instances-cell-${RHSM_API_PATH_METRIC_TYPES.INSTANCE_HOURS}`} data-value={`${total}`} />
)
Expand Down
2 changes: 1 addition & 1 deletion src/services/rhsm/rhsmServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e0bf3d

Please sign in to comment.