Skip to content

Commit

Permalink
Return :billing-mode :provisioned when BillingModeSummary is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
joelittlejohn authored and kipz committed Jul 3, 2020
1 parent 6ad7ade commit f14d461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/faraday.clj
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
:item-count (.getItemCount d)
:size (.getTableSizeBytes d)
:throughput (as-map (.getProvisionedThroughput d))
:billing-mode (as-map (.getBillingModeSummary d))
:billing-mode (as-map (or (.getBillingModeSummary d) (.. (BillingModeSummary.) (withBillingMode "PROVISIONED"))))
:indexes (as-map (.getLocalSecondaryIndexes d)) ; DEPRECATED
:lsindexes (as-map (.getLocalSecondaryIndexes d))
:gsindexes (as-map (.getGlobalSecondaryIndexes d))
Expand Down

0 comments on commit f14d461

Please sign in to comment.