File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
internal/namespaces/baremetal/v1 Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,13 @@ func serverOfferListBuilder(c *core.Command) *core.Command {
8888
8989 client := core .ExtractClient (ctx )
9090 baremetalAPI := baremetal .NewAPI (client )
91- offers , _ := baremetalAPI .ListOffers (req , scw .WithAllPages ())
91+ offers , err := baremetalAPI .ListOffers (req , scw .WithAllPages ())
92+ if err != nil {
93+ return nil , err
94+ }
9295
9396 productAPI := productcatalog .NewPublicCatalogAPI (client )
94- environmentalImpact , _ := productAPI .ListPublicCatalogProducts (
97+ environmentalImpact , err := productAPI .ListPublicCatalogProducts (
9598 & productcatalog.PublicCatalogAPIListPublicCatalogProductsRequest {
9699 ProductTypes : []productcatalog.ListPublicCatalogProductsRequestProductType {
97100 productcatalog .ListPublicCatalogProductsRequestProductTypeElasticMetal ,
@@ -100,6 +103,9 @@ func serverOfferListBuilder(c *core.Command) *core.Command {
100103 },
101104 scw .WithAllPages (),
102105 )
106+ if err != nil {
107+ return nil , err
108+ }
103109
104110 var unitOfMeasure productcatalog.PublicCatalogProductUnitOfMeasureCountableUnit
105111 if req .SubscriptionPeriod == "monthly" {
You can’t perform that action at this time.
0 commit comments