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:
commit
e634e90a45
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue