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

Conditionally import cloud hooks #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dankolbman
Copy link

@dankolbman dankolbman commented Nov 28, 2018

With the current imports, users are required to have modules installed for both aws and gcp so that S3Hook and GoogleCloudStorageHook may be imported. However, it's not likely a user will need to have both installed, so it is better to delay and import them depending on the value of destination.

Also updates readme with the current operator doc string.

@louisguitton
Copy link

@dankolbman was the hook for gcp imported fine for you ?
I'm having issues: #5

@dankolbman
Copy link
Author

@louisguitton I removed the gcp hook from the import here since I only use the S3 hook:

from airflow.hooks import S3Hook, GoogleCloudStorageHook

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.

2 participants