You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/06/10 05:41:16 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #23160: Always -f when removing container after DockerOperator execution
uranusjr commented on code in PR #23160:
URL: https://github.com/apache/airflow/pull/23160#discussion_r894169596
##########
airflow/providers/docker/operators/docker.py:
##########
@@ -189,7 +190,20 @@ def __init__(
) -> None:
super().__init__(**kwargs)
self.api_version = api_version
- self.auto_remove = auto_remove
+ if type(auto_remove) == bool:
+ warnings.warn(
+ "bool value is deprecated, please use 'never', 'success', or 'force' instead",
+ DeprecationWarning,
+ stacklevel=2
+ )
Review Comment:
```suggestion
if type(auto_remove) == bool:
warnings.warn(
"bool value is deprecated, please use 'never', 'success', or 'force' instead",
DeprecationWarning,
stacklevel=2,
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org