eladkal commented on code in PR #23160:
URL: https://github.com/apache/airflow/pull/23160#discussion_r894180838
##########
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",
Review Comment:
```suggestion
"bool value for auto_remove is deprecated, please use
'never', 'success', or 'force' instead",
```
bool is the type so users might not understand the message relates to
auto_remove
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]