fog-rackspace 0.1.4 → 0.1.5

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: 154e452a3dea52501efcbaaf0c6593d925c5ef7e
4
- data.tar.gz: fcc716ba357aec449bf7877881a2f7a6684189ec
3
+ metadata.gz: 3bbb3eaeb194fdab4983abc4f1fa03f8f7f75685
4
+ data.tar.gz: 879d01586711d6138f903eaa4286e2d2748cf2d4
5
5
  SHA512:
6
- metadata.gz: b59e56655f90889089cc72300e60a88fc70d275f20b1269aec792189180f27d69c502b27421b1a1637481d4237607a8bf6fe35711f5ddf017d4e34962dac1271
7
- data.tar.gz: 5406cf428af959fc21d59385e1098434442d2db59f523e1c4a5b5ed0f707b53f32b0b625690a11df1e0872d47228ed505067fd236f61ba2c7638f67c0cf73ebe
6
+ metadata.gz: 72d607d7cfdda502a8cc2903f8ce23fdf576b8f48df6fb4363dbf24c9b229fec33a37c65bf25afb2f33351262514e1054335ba07c8da6fc42996dd4aecf17351
7
+ data.tar.gz: 85ad10185a1fb69bdd3f0d4e54e464074ab9ebbb7d8abb7b8586fd7f27e2eb40e86709b3e1c44a15f98abbbcef7be527cecc0f81575e23e00930915c3aa53fc2
data/.gitignore CHANGED
@@ -8,4 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  *.gem
11
- *.tags
11
+ .tags
@@ -271,6 +271,13 @@ module Fog
271
271
  modified_options[:boot_image_id] ||= attributes[:boot_image_id]
272
272
  modified_options[:boot_volume_size] ||= attributes[:boot_volume_size]
273
273
 
274
+ if mn = modified_options[:networks]
275
+ # If we've already processed it into the correct form don't process again.
276
+ unless mn.first.is_a?(Hash)
277
+ modified_options[:networks].map! { |id| { :uuid => id } }
278
+ end
279
+ end
280
+
274
281
  data = service.create_server(name, image_id, flavor_id, 1, 1, modified_options)
275
282
  merge_attributes(data.body['server'])
276
283
  true
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Rackspace
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-rackspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -948,7 +948,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
948
948
  version: '0'
949
949
  requirements: []
950
950
  rubyforge_project:
951
- rubygems_version: 2.4.8
951
+ rubygems_version: 2.2.2
952
952
  signing_key:
953
953
  specification_version: 4
954
954
  summary: Rackspace support for Fog