From 9191da31121e851725c6702c0bb39b9319dec0bd Mon Sep 17 00:00:00 2001 From: nnesic Date: Thu, 29 Oct 2015 12:18:17 +0000 Subject: [PATCH] CLOUDSTACK-9011 - Fixed user_vm_view to only display keypairs belonging to the account. --- setup/db/db/schema-452to460.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/db/db/schema-452to460.sql b/setup/db/db/schema-452to460.sql index 22aa76e9d2f..12feb80ca3b 100644 --- a/setup/db/db/schema-452to460.sql +++ b/setup/db/db/schema-452to460.sql @@ -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'