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:
parent
907dd0cba5
commit
7d0b7d8814
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue