mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8727: API call listVirtualMachines returns same keypairCurrently the user can register same key with different names. Upon listing the VM's the name which got registered first is being returned and not the actual one. Anyhow this behavior is rare and not good. I have added a UNIQUE constraint on the ssh_keypairs table and also made sure that the previous registered keys(with duplicates) get deleted. * pr/685: CLOUDSTACK-8727: API call listVirtualMachines returns same keypair: Corrected and test cases added Signed-off-by: Rajani Karuturi <rajani.karuturi@citrix.com>