Skip to content

Commit 958f061

Browse files
committed
Bug fix related to bare metal server ordering
1 parent 0b740ea commit 958f061

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.textile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
*2.2.1*
2+
* Fixed a bug in BareMetalServerOrder_Package.rb where the order template did not use an array for the "hardware" key. This lead to an order template that would be accepted by verifyOrder, but rejected by placeOrder. An internal issue to review verifyOrder has also been generated. (reported by Rohit Singh)
3+
14
*2.2*
25
* Added the ability to set a timout for network requests. The timeout is given when a client is created by passing the :timeout hash parameter when creating a client. The value of the parameter is an integer number of seconds.
36
* Fixed a bug in VirtualServer#capture_image

lib/softlayer/BareMetalServerOrder_Package.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ def hardware_order
133133
product_order = {
134134
'packageId' => @package.id,
135135
'useHourlyPricing' => false,
136-
'hardware' => {
136+
'hardware' => [{
137137
'hostname' => @hostname,
138138
'domain' => @domain
139-
}
139+
}]
140140
}
141141

142142
product_order['location'] = @package.location_id_for_datacenter_name(@datacenter.downcase) if @datacenter

lib/softlayer/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# - +$SL_API_BASE_URL+- The default URL used to access the SoftLayer API. This defaults to the value of +SoftLayer::API_PUBLIC_ENDPOINT+
3232
#
3333
module SoftLayer
34-
VERSION = "2.2.0" # version history in the CHANGELOG.textile file at the root of the source
34+
VERSION = "2.2.1" # version history in the CHANGELOG.textile file at the root of the source
3535

3636
# The base URL of the SoftLayer API available to the public internet.
3737
API_PUBLIC_ENDPOINT = 'https://api.softlayer.com/xmlrpc/v3/'

0 commit comments

Comments
 (0)