CLOUDSTACK-7873 Fixed the user vm details length issue for higher key lengths
Fixed the wrong if else statement