def vcenter_connect(self):
try:<EOL><INDENT>si = SmartConnect(<EOL>host=self.host,<EOL>user=self.user,<EOL>pwd=self.password,<EOL>port=self.port)<EOL>atexit.register(Disconnect, si)<EOL><DEDENT>except vim.fault.InvalidLogin as e:<EOL><INDENT>print("<STR_LIT>".format(e.msg))<EOL>sys.exit(<NUM_LIT:5>)<EOL><DEDENT>return si<EOL>
Attempt to connect to vCenter
:return: