From e4ce9804dec13b7ab13a83b19887d28250bdf127 Mon Sep 17 00:00:00 2001 From: Maurice Schreiber Date: Wed, 5 Aug 2015 15:16:28 +0200 Subject: [PATCH] [openstack] mock create subnet array options --- lib/fog/openstack/requests/network/create_subnet.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fog/openstack/requests/network/create_subnet.rb b/lib/fog/openstack/requests/network/create_subnet.rb index aad7cef07..2265de4a2 100644 --- a/lib/fog/openstack/requests/network/create_subnet.rb +++ b/lib/fog/openstack/requests/network/create_subnet.rb @@ -38,9 +38,9 @@ module Fog 'cidr' => cidr, 'ip_version' => ip_version, 'gateway_ip' => options[:gateway_ip], - 'allocation_pools' => options[:allocation_pools], - 'dns_nameservers' => options[:dns_nameservers], - 'host_routes' => options[:host_routes], + 'allocation_pools' => options[:allocation_pools] || [], + 'dns_nameservers' => options[:dns_nameservers] || [], + 'host_routes' => options[:host_routes] || [], 'enable_dhcp' => options[:enable_dhcp], 'tenant_id' => options[:tenant_id] }