Skip to content

Commit 87d6f36

Browse files
committed
Update ObjectFilter usage in NetworkStorage to accommodate the new object filters that was missed in the last round of cleanup
1 parent 20e674a commit 87d6f36

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

lib/softlayer/NetworkStorage.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,24 +260,13 @@ def self.find_network_storage(options_hash = {})
260260
end
261261

262262
if options_hash[:network_storage_server_type]
263-
[ :datacenter, :domain, :hostname ].each do |option|
263+
[ :datacenter, :domain, :hostname, :tags ].each do |option|
264264
if options_hash[option]
265265
network_storage_object_filter.modify do |filter|
266266
filter.accept(option_to_filter_path[option].call(network_storage_type, options_hash[:network_storage_server_type])).when_it is(options_hash[option])
267267
end
268268
end
269269
end
270-
271-
if options_hash[:tags]
272-
network_storage_object_filter.set_criteria_for_key_path(option_to_filter_path[:tags].call(network_storage_type, options_hash[:network_storage_server_type]),
273-
{
274-
'operation' => 'in',
275-
'options' => [{
276-
'name' => 'data',
277-
'value' => options_hash[:tags].collect{ |tag_value| tag_value.to_s }
278-
}]
279-
})
280-
end
281270
end
282271

283272
account_service = softlayer_client[:Account]

0 commit comments

Comments
 (0)