mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fixed empty filter issue, nil filter
This commit is contained in:
parent
4a4e41abc3
commit
d320092651
2 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ module Fog
|
||||||
include Fog::Compute::LibvirtUtil
|
include Fog::Compute::LibvirtUtil
|
||||||
|
|
||||||
identity :id, :aliases => 'uuid'
|
identity :id, :aliases => 'uuid'
|
||||||
attribute :uuid
|
|
||||||
attribute :xml
|
attribute :xml
|
||||||
|
|
||||||
attribute :cpus
|
attribute :cpus
|
||||||
|
|
|
@ -11,7 +11,7 @@ module Fog
|
||||||
|
|
||||||
def all(filter=nil)
|
def all(filter=nil)
|
||||||
data=[]
|
data=[]
|
||||||
|
filter={} if filter.nil?
|
||||||
include_defined=filter.has_key?(:defined) ? filter[:defined] : true
|
include_defined=filter.has_key?(:defined) ? filter[:defined] : true
|
||||||
include_active=filter.has_key?(:active) ? filter[:active] : true
|
include_active=filter.has_key?(:active) ? filter[:active] : true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue