Skip to content

Use base aws classes in Amazon S3 Glacier Operators/Sensors#35108

Merged
vincbeck merged 3 commits intoapache:mainfrom
Taragolis:amazon-glacier-use-base
Oct 24, 2023
Merged

Use base aws classes in Amazon S3 Glacier Operators/Sensors#35108
vincbeck merged 3 commits intoapache:mainfrom
Taragolis:amazon-glacier-use-base

Conversation

@Taragolis
Copy link
Contributor


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Comment on lines -38 to +40
def __init__(self, aws_conn_id: str = "aws_default") -> None:
super().__init__(client_type="glacier")
self.aws_conn_id = aws_conn_id
def __init__(self, *args, **kwargs) -> None:
kwargs.update({"client_type": "glacier", "resource_type": None})
super().__init__(*args, **kwargs)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally found that GlacierHook only allows aws_conn_id and ignore other AwsBaseHook's parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants