def _ssh_args(ssh_bin, address, ec2_key_pair_file):
 if (ec2_key_pair_file is None):
  raise ValueError('SSH key file path is None')
 return (ssh_bin + ['-i', ec2_key_pair_file, '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', ('hadoop@%s' % (address,))])

def _ssh_args ( ssh_bin , address , ec2_key_pair_file ) : if ( ec2_key_pair_file is None ) : raise ValueError ( 'SSH key file path is None' ) return ( ssh_bin + [ '-i' , ec2_key_pair_file , '-o' , 'StrictHostKeyChecking=no' , '-o' , 'UserKnownHostsFile=/dev/null' , ( 'hadoop@%s' % ( address , ) ) ] )
helper method for :py:func:_ssh_run to build an argument list for subprocess .