Skip to content

Commit b902c51

Browse files
ArtsiomMusinrenier
authored andcommitted
Change available locations to regions for Product Package (#127)
1 parent 03f75fd commit b902c51

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

doc_src/ContributionGuide.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ gems are built into the `pkg` directory and will have a name of the form `softla
6464

6565
You can install your modified gem to your system with the gem command:
6666

67-
$ bundle gem install pkg/softlayer_api-<version>.gem
67+
$ bundle exec gem install pkg/softlayer_api-<version>.gem
6868

6969
(don't forget to substitute the version you are installing where the `<version>` tag appears in the command line above)
7070

@@ -138,4 +138,3 @@ If you intend to offer new models, please carefully review the Model Layer docum
138138
# Submitting Changes
139139

140140
Contributions are made to the `softlayer_api` Gem by submitting a pull-request on GitHub. The community will review pull requests and offer constructive advice on improvements. The determination on whether a pull-request will be accepted into the gem is made at the sole discretion of SoftLayer with the wise counsel of the community.
141-

lib/softlayer/ProductPackage.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ProductPackage < ModelBase
4545
##
4646
# :attr_reader: available_locations
4747
# The list of locations where this product package is available.
48-
sl_attr :available_locations, 'availableLocations'
48+
sl_attr :available_locations, 'regions'
4949

5050
##
5151
# Retrieve the set of product categories needed to make an order for this product package.
@@ -230,7 +230,7 @@ def self.additional_products_package(client = nil)
230230
"groups.prices.requiredCoreCount" ].join(",") + "]"
231231

232232
def self.default_object_mask(root)
233-
"#{root}[id,name,description,availableLocations.location]"
233+
"#{root}[id,name,description,regions]"
234234
end
235235
end
236236
end # SoftLayer

0 commit comments

Comments
 (0)