lib/fog/aws/models/compute/dhcp_options.rb in fog-1.8.0 vs lib/fog/aws/models/compute/dhcp_options.rb in fog-1.9.0
- old
+ new
@@ -57,11 +57,11 @@
unless filters.is_a?(Hash)
Fog::Logger.warning("all with #{filters.class} param is deprecated, use all('internet-gateway-id' => []) instead [light_black](#{caller.first})[/]")
filters = {'dhcp-options-id' => [*filters]}
end
self.filters = filters
- data = connection.describe_dhcp_options(filters).body
+ data = service.describe_dhcp_options(filters).body
load(data['dhcpOptionsSet'])
end
# Used to retrieve an DhcpOption
#
@@ -78,10 +78,10 @@
#>
#
def get(dhcp_options_id)
if dhcp_options_id
- self.class.new(:connection => connection).all('dhcp-options-id' => dhcp_options_id).first
+ self.class.new(:service => service).all('dhcp-options-id' => dhcp_options_id).first
end
end
end