Refactor connection_host method
Refactor connection_host method

Signed-off-by: Vivek Singh <ffdfd29e24c206a3c24e1247563eb4c218c7ffa5@msystechnologies.com>

MsysTechnologiesllc/knife-ec2,MsysTechnologiesllc/knife-ec2,ClogenyTechnologies/knife-ec2,chef/knife-ec2,chef/knife-ec2