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

* Fix Servers.templates method

This commit is contained in:
Sergio Rubio 2012-04-04 20:20:07 +02:00
parent 907dd0cba5
commit 7d0b7d8814

View file

@ -10,7 +10,11 @@ module Fog
model Fog::Compute::XenServer::Server
def templates
custom_templates + builtin_templates
data = connection.get_records 'VM'
data.delete_if do |vm|
!vm[:is_a_template]
end
load(data)
end
def custom_templates