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

fix issues in checking whether VM is of template type

This commit is contained in:
Ming Jin 2013-04-10 16:20:12 +08:00
parent 0f84b3a28c
commit 69a3cc5e61

View file

@ -42,7 +42,7 @@ module Fog
vms = convert_vm_view_to_attr_hash(vms)
# remove all template based virtual machines
vms.delete_if { |v| v.config.nil? or v['template'] }
vms.delete_if { |v| v['template'] }
vms
end