def METHOD_NAME(self, *args, **kw):
    # try:
    #     self.connect()
    #     return func(self, *args, **kw)
    # except (paramiko.ssh_exception.BadHostKeyException,
    #         paramiko.ssh_exception.AuthenticationException,
    #         paramiko.ssh_exception.SSHException,
    #         socket.error) as e:
    #     msg = "We caught an exception: {}.".format(e)
    #     LOG.warning(msg)
    #     self.output['exception'] = str(e)
    #     return self.output
    self.connect()
    return func(self, *args, **kw)