CLOUDSTACK-9011 - Fixed user_vm_view to only display keypairs belonging to the account.

This commit is contained in:
nnesic 2015-10-29 12:18:17 +00:00
parent eabf11c99d
commit 9191da3112
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ CREATE VIEW `cloud`.`user_vm_view` AS
`cloud`.`user_vm_details` as ssh_details ON ssh_details.vm_id = vm_instance.id
and ssh_details.name = 'SSH.PublicKey'
left join
`cloud`.`ssh_keypairs` ON ssh_keypairs.public_key = ssh_details.value
`cloud`.`ssh_keypairs` ON ssh_keypairs.public_key = ssh_details.value AND ssh_keypairs.account_id = account.id
left join
`cloud`.`resource_tags` ON resource_tags.resource_id = vm_instance.id
and resource_tags.resource_type = 'UserVm'