提交 e4cb6e26 编写于 作者: C Cleber Rosa

Remote Runner: do not keep parser as attribute

Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 16231fe9
...@@ -571,36 +571,36 @@ class RemoteCLI(CLI): ...@@ -571,36 +571,36 @@ class RemoteCLI(CLI):
return return
msg = 'test execution on a remote machine' msg = 'test execution on a remote machine'
self.remote_parser = run_subcommand_parser.add_argument_group(msg) remote_parser = run_subcommand_parser.add_argument_group(msg)
self.remote_parser.add_argument('--remote-hostname', remote_parser.add_argument('--remote-hostname',
dest='remote_hostname', default=None, dest='remote_hostname', default=None,
help='Specify the hostname to login on' help=('Specify the hostname to login on'
' remote machine') ' remote machine'))
self.remote_parser.add_argument('--remote-port', dest='remote_port', remote_parser.add_argument('--remote-port', dest='remote_port',
default=22, type=int, help='Specify ' default=22, type=int,
'the port number to login on remote ' help=('Specify the port number to login on '
'machine. Current: 22') 'remote machine. Current: 22'))
self.remote_parser.add_argument('--remote-username', remote_parser.add_argument('--remote-username',
dest='remote_username', dest='remote_username',
default=getpass.getuser(), default=getpass.getuser(),
help='Specify the username to login on' help=('Specify the username to login on'
' remote machine. Current: ' ' remote machine. Current: '
'%(default)s') '%(default)s'))
self.remote_parser.add_argument('--remote-password', remote_parser.add_argument('--remote-password',
dest='remote_password', default=None, dest='remote_password', default=None,
help='Specify the password to login on' help=('Specify the password to login on'
' remote machine') ' remote machine'))
self.remote_parser.add_argument('--remote-key-file', remote_parser.add_argument('--remote-key-file',
dest='remote_key_file', default=None, dest='remote_key_file', default=None,
help='Specify an identity file with ' help=('Specify an identity file with a '
'a private key instead of a password ' 'private key instead of a password '
'(Example: .pem files from Amazon EC2)') '(Example: .pem files from Amazon EC2)'))
self.remote_parser.add_argument('--remote-timeout', metavar='SECONDS', remote_parser.add_argument('--remote-timeout', metavar='SECONDS',
help=("Amount of time (in seconds) to " default=60, type=int,
"wait for a successful connection" help=("Amount of time (in seconds) to "
" to the remote machine. Defaults" "wait for a successful connection"
" to %(default)s seconds."), " to the remote machine. Defaults"
default=60, type=int) " to %(default)s seconds."))
@staticmethod @staticmethod
def _check_required_args(args, enable_arg, required_args): def _check_required_args(args, enable_arg, required_args):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册