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

Remove host parameter as obligatory in SFTPStorage #926

Merged
merged 3 commits into from
Sep 1, 2020

Conversation

loderos
Copy link
Contributor

@loderos loderos commented Sep 1, 2020

This allows the SFTP_STORAGE_HOST setting to actually be used.

In the current implementation, the host=None in init causes the host attribute on SFTPStorage to always revert to None if using the DEFAULT_FILE_STORAGE setting in Django. Removing the default value for host in the init signature allows the default parameter from SFTP_STORAGE_HOST to be applied.

@jschneier jschneier merged commit e76deda into jschneier:master Sep 1, 2020
mlazowik pushed a commit to qedsoftware/django-storages that referenced this pull request Mar 9, 2022
* Remove host parameter as obligatory in SFTPStorage

This allows the SFTP_STORAGE_HOST setting to actually be used.

* Fix tests: make hostname a keyword argument

* Fix typo: hostname -> host

Co-authored-by: Lode Rosseel <lode@antenor.be>
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.

None yet

2 participants