mirror of https://github.com/openspug/spug
fix(libs/ssh): fix wrong exception message
parent
88ebd46e47
commit
4504ae509e
|
@ -11,7 +11,7 @@ from io import StringIO
|
|||
class SSH:
|
||||
def __init__(self, hostname, port=SSH_PORT, username='root', pkey=None, password=None, connect_timeout=10):
|
||||
if pkey is None and password is None:
|
||||
raise Exception('public key and password must have one is not None')
|
||||
raise Exception('private key and password cannot both be None')
|
||||
self.client = None
|
||||
self.arguments = {
|
||||
'hostname': hostname,
|
||||
|
|
Loading…
Reference in New Issue