Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added passthrough for PySFTP Connection keyword arguments to RemoteTarget constructor #1815

Merged
merged 2 commits into from
Aug 11, 2016
Merged

Conversation

petergaultney
Copy link
Contributor

Description

This is simply a passthrough to enable the RemoteTarget to be used in cases
where the SFTP connection is made using a private key instead of a password.
However, since PySFTP is the underlying SFTP module in use, I reason that there
is no need to continue adding the Connection options piecemeal as people decide
they need them. It is sufficient at this point to maintain the existing username,password
interface of RemoteTarget while allowing users to supplement these with any other
valid PySFTP Connection() constructor arguments that are useful to them.

This doesn't alter the interface for existing users - it simply
allows users who know that PySFTP is the underlying implementation
to pass additional keyword arguments to the creation of the PySFTP
Connection.

Motivation and Context

My usage of Luigi requires uploading a file to an SFTP server, to which I authenticate with a username and private key.

Have you tested this? If so, how?

I have not tested this except for my own usage, but I anticipate it will pass all existing tests, and the implementation is a simple use of standard Python kwargs semantics.

peterg-eb and others added 2 commits August 11, 2016 13:03
There's no reason Luigi shouldn't support things like SFTP
using a private key file, for instance.

This doesn't alter the interface for existing users - it simply
allows users who know that PySFTP is the underlying implementation
to pass additional keyword arguments to the creation of the PySFTP
Connection.
@mention-bot
Copy link

@petergaultney, thanks for your PR! By analyzing the annotation information on this pull request, we identified @dlstadther, @jeffcjohnson and @ajornetic3 to be potential reviewers

@erikbern erikbern merged commit 396d138 into spotify:master Aug 11, 2016
This was referenced Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants