1
0
Fork 0
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:
Patrick Debois 2011-08-22 10:51:34 +02:00
parent 4a4e41abc3
commit d320092651
2 changed files with 1 additions and 2 deletions

View file

@ -15,7 +15,6 @@ module Fog
include Fog::Compute::LibvirtUtil
identity :id, :aliases => 'uuid'
attribute :uuid
attribute :xml
attribute :cpus

View file

@ -11,7 +11,7 @@ module Fog
def all(filter=nil)
data=[]
filter={} if filter.nil?
include_defined=filter.has_key?(:defined) ? filter[:defined] : true
include_active=filter.has_key?(:active) ? filter[:active] : true