From 34e03180370abdd61903bbc5cb3564e54bd1eec1 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Thu, 18 Apr 2013 13:14:22 +0200 Subject: [PATCH] some ipv6_only corrections --- lib/fog/bluebox/models/compute/server.rb | 2 +- lib/fog/bluebox/requests/compute/create_block.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/bluebox/models/compute/server.rb b/lib/fog/bluebox/models/compute/server.rb index efed0919c..9423a44c0 100644 --- a/lib/fog/bluebox/models/compute/server.rb +++ b/lib/fog/bluebox/models/compute/server.rb @@ -92,7 +92,7 @@ module Fog options['username'] = username options['hostname'] = hostname if @hostname - options['ipv6_only'] = ipv6_only if @ipv6_only + options['ipv6_only'] = ipv6_only if ipv6_only data = service.create_block(flavor_id, image_id, location_id, options) merge_attributes(data.body) true diff --git a/lib/fog/bluebox/requests/compute/create_block.rb b/lib/fog/bluebox/requests/compute/create_block.rb index ea5dde507..5ea7942a1 100644 --- a/lib/fog/bluebox/requests/compute/create_block.rb +++ b/lib/fog/bluebox/requests/compute/create_block.rb @@ -30,6 +30,8 @@ module Fog 'location' => location_id } + query['ipv6_only'] = options.delete('ipv6_only') if options['ipv6_only'] + request( :expects => 200, :method => 'POST',