Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pci-object-storage): fix 3az price #14280

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
OBJECT_CONTAINER_OFFER_SWIFT,
OBJECT_CONTAINER_MODE_MULTI_ZONES,
OBJECT_CONTAINER_MODE_MONO_ZONE,
STORAGE_STANDARD_PLANCODE,
STORAGE_STANDARD_REGION_PLANCODE,
SWIFT_PLANCODE,
OBJECT_CONTAINER_MODE_LOCAL_ZONE,
DEPLOYMENT_MODE_LINK,
Expand Down Expand Up @@ -197,7 +197,7 @@ export default class PciStoragesContainersAddController {
this.OBJECT_CONTAINER_OFFERS_LABELS[
OBJECT_CONTAINER_OFFER_STORAGE_STANDARD
].price = this.PriceFormatter.format(
this.calculatePrice(STORAGE_STANDARD_PLANCODE),
this.calculatePrice(STORAGE_STANDARD_REGION_PLANCODE),
);

this.OBJECT_CONTAINER_OFFERS_LABELS[
Expand Down Expand Up @@ -239,7 +239,7 @@ export default class PciStoragesContainersAddController {
this.coreConfig.getUser().ovhSubsidiary,
).then((productCapabilities) => {
const productCapability = productCapabilities.plans?.filter((plan) =>
plan.code?.startsWith(STORAGE_STANDARD_PLANCODE),
plan.code?.startsWith(STORAGE_STANDARD_REGION_PLANCODE),
);

this.OBJECT_CONTAINER_DEPLOYMENT_MODES_LABELS[
Expand Down
Loading