ey-core 3.2.3 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22f4bf036b2ae0e2405f9c2b3429be50acf703b9
4
- data.tar.gz: 6a39aa1bff963bb2fab93ec11f05097aa4026412
3
+ metadata.gz: b489ceaf6f7e474b2337f96fc3eafb224a937d99
4
+ data.tar.gz: 306111004fbbe08ad7e9983098081eae13ec7910
5
5
  SHA512:
6
- metadata.gz: 01efbde05cc301846b49497e02f2d8687a4f3caba403dce45b35e10bc694e6dc30bb728974b91375a37f2d105313f1a4c0f11b5d2f0329037b13361d48aba144
7
- data.tar.gz: ad29a4f6fbd2259923a85ff4cc3af054c1e62912c2333c922881646f6bc2eebfe7e753ec621c8445bdfe22e2ebcd52b2957e81f2ca7d905e7e96f78a6b69fb2d
6
+ metadata.gz: f0c15aea22fd0c244b5240cb41c0b422c64e4721786ba1e4e2f8827b46bfb25e120ee58a5054b742e9b5218d38ed311d46cacdcbbbe8a1d3e20b85ed24a1feac
7
+ data.tar.gz: cc9fe75f9ea736248b7113ee69535874a186be4c122e02aa174d74e0289bf7104876e189a19ba34d582fce241a07b832168dab6a5659e1956cffb5a0841c85a3
@@ -63,6 +63,7 @@ class Ey::Core::Client
63
63
  "updated_at" => Time.now.to_s,
64
64
  "volumes" => url_for("/servers/#{resource_id}/volumes"),
65
65
  "role" => server["role"],
66
+ "resource_url" => url_for("/servers/#{resource_id}"),
66
67
  }
67
68
 
68
69
  request = {
@@ -30,12 +30,14 @@ class Ey::Core::Client
30
30
  :status => 409,
31
31
  )
32
32
  else
33
- tracked_address = self.addresses.create!(resource.merge("provider" => provider_id)).resource!
33
+ resource_id = self.serial_id
34
+ self.data[:addresses][resource_id] = resource.merge(
35
+ "provider" => provider_id, "id" => resource_id, "resource_url" => "/addresses/#{resource_id}")
34
36
 
35
37
  resource.merge!(
36
38
  "provider" => url_for("/providers/#{provider_id}"),
37
39
  "location" => resource['location'],
38
- "address" => url_for("/addresses/#{tracked_address.id}"),
40
+ "address" => url_for("/addresses/#{resource_id}"),
39
41
  )
40
42
 
41
43
  response(
@@ -1,5 +1,5 @@
1
1
  module Ey
2
2
  module Core
3
- VERSION = "3.2.3"
3
+ VERSION = "3.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-05 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable