1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1742 from aussielunix/vsphere-bug-list-networks

[vsphere|compute] fix incorrect filters.merge in networks model
This commit is contained in:
Ohad Levy 2013-04-08 05:27:14 -07:00
commit e634e90a45

View file

@ -11,14 +11,14 @@ module Fog
attr_accessor :datacenter
def all(filters = {})
load service.list_networks(filters.merge(:datacenter => datacenter))
f = { :datacenter => datacenter }.merge(filters)
load service.list_networks(f)
end
def get(id)
requires :datacenter
new service.get_network(id, datacenter)
end
end
end
end