softlayer / softlayer-ruby

http://softlayer.github.io/softlayer-ruby/
MIT License
54 stars 35 forks source link

Criteria based search routines do not apply filters properly #37

Closed SLsthompson closed 9 years ago

SLsthompson commented 10 years ago

Calling find_servers in either SoftLayer::BareMetalServer or SoftLayer::VirtualServer with more than one criteria provided will not yield the proper results. For example:

SoftLayer::VirtualServer.find_servers(:domain => 'softlayer.com', :cpus => 4)

Will return the servers in the domain 'softlayer.com', but the criteria limiting the results to 4 cpus will be ignored.

This is because the object filters for those routines are not being put together properly.