avocado.utils.remote: Add port to the list of Remote params

Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 2c47cae5
......@@ -38,7 +38,7 @@ class Remote(object):
"""
def __init__(self, hostname, username=None, password=None,
timeout=60, attempts=3, quiet=True):
port=22, timeout=60, attempts=3, quiet=True):
"""
Creates an instance of :class:`Remote`.
......@@ -55,10 +55,12 @@ class Remote(object):
self.username = username
# None = use public key
self.password = password
self.port = port
self.quiet = quiet
self._setup_environment(host_string=hostname,
user=username,
password=password,
port=port,
connection_timeout=timeout,
connection_attempts=attempts)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册