Skip to content

Commit f14d461

Browse files
joelittlejohnkipz
authored andcommitted
Return :billing-mode :provisioned when BillingModeSummary is nil
1 parent 6ad7ade commit f14d461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/taoensso/faraday.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
:item-count (.getItemCount d)
437437
:size (.getTableSizeBytes d)
438438
:throughput (as-map (.getProvisionedThroughput d))
439-
:billing-mode (as-map (.getBillingModeSummary d))
439+
:billing-mode (as-map (or (.getBillingModeSummary d) (.. (BillingModeSummary.) (withBillingMode "PROVISIONED"))))
440440
:indexes (as-map (.getLocalSecondaryIndexes d)) ; DEPRECATED
441441
:lsindexes (as-map (.getLocalSecondaryIndexes d))
442442
:gsindexes (as-map (.getGlobalSecondaryIndexes d))

0 commit comments

Comments
 (0)