Revision 68ac4439 ncclient/transport/ssh.py

b/ncclient/transport/ssh.py
178 178
        """
179 179

  
180 180
        if username is None:
181
            raise SSHError("No username specified")
182

  
181
            username = getpass.getuser()
182
        
183 183
        sock = None
184 184
        for res in socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM):
185 185
            af, socktype, proto, canonname, sa = res
......
340 340
        object. This makes it possible to call methods like set_keepalive on it.
341 341
        """
342 342
        return self._transport
343

  

Also available in: Unified diff