System Template shows twice in listTemplates with S3 as secondary

storage.
This commit is contained in:
Min Chen 2013-07-19 16:43:44 -07:00
parent 0633608f80
commit 24fc147ee8
1 changed files with 1 additions and 1 deletions

View File

@ -1964,7 +1964,7 @@ CREATE VIEW `cloud`.`template_view` AS
left join
`cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
left join
`cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id
`cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id and template_store_ref.store_role = 'Image'
left join
`cloud`.`image_store` ON image_store.removed is NULL AND template_store_ref.store_id is not NULL AND image_store.id = template_store_ref.store_id
left join