knife-openstack 1.0.0.rc1 → 1.0.0.rc2

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: 13492963594dd97e5007238a36319adbe3b86135
4
- data.tar.gz: 95480b2805c8ff46602929ee7f240d35a7447aa7
3
+ metadata.gz: 1fa5f6a60cddaad604faf9b1fee4b8985279d8c3
4
+ data.tar.gz: 5deb15ee545e3c23480f92374b866fa01f78a71e
5
5
  SHA512:
6
- metadata.gz: 4eb2ee6abd59a5836b33bd8fa692b858e3708afbec35b44759ef04679e7fb97ad4bd9d6531282d8747670448a148641e1431c28de3b7e0ccb73745fafe56e40e
7
- data.tar.gz: d0b82f89495c66b4efda371a08bd5b40d7e4292cf24abcb74c734e01c79182cf776d2b161a319285883b9b6757a031875270325d069fcace8373b2053bfddebc
6
+ metadata.gz: 102b1f99fa4c742e0c2f1a23215ef9a381c592aa4db9294ea259c3e010d696e529d8e6aa565e70175d2b1bb1cccb9ff6db98504b9a534c66fe20e228267b65a0
7
+ data.tar.gz: 03da3128b580dc0e38c0ded5127de2771caa517ac44563f004405a3a7389f455325b040dc064c80151be9d487e47cec1f66821e47b59fe372d923a3e4357065a
data/Gemfile CHANGED
@@ -4,11 +4,7 @@ source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  group :development do
7
- gem 'rspec', '>= 2.7.0'
8
7
  gem 'guard-rspec'
9
- gem 'rspec_junit_formatter'
10
- gem 'rake'
11
8
  gem 'mixlib-shellout'
12
- gem 'knife-cloud', :git => 'https://github.com/opscode/knife-cloud.git'
13
9
  gem 'knife-windows', :git => 'https://github.com/opscode/knife-windows.git'
14
- end
10
+ end
@@ -104,8 +104,8 @@ class Chef
104
104
  end
105
105
 
106
106
  # Pull the port_id for the associate_floating_ip
107
- port_id = @service.network.list_ports[:body].flatten.flatten[1]["id"]
108
- fixed_ip_address = @service.network.list_ports[:body].flatten.flatten[1]["fixed_ips"].flatten[0]["ip_address"]
107
+ port_id = @service.network.list_ports[:body]['ports'].find {|x| x['fixed_ips'][0]['ip_address'] == bind_ip}['id']
108
+ fixed_ip_address = service.network.list_ports[:body]["ports"].find {|x| x['id'] == port_id}['fixed_ips'][0]["ip_address"]
109
109
 
110
110
  floating_ip_id = get_floating_ip_id(floating_address)
111
111
  # Associate the floating ip via the neutron/network api
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module OpenStack
3
- VERSION = "1.0.0.rc1"
3
+ VERSION = "1.0.0.rc2"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clogeny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog