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] }