gbonazzoli opened a new issue #17889:
URL: https://github.com/apache/airflow/issues/17889
### Apache Airflow version
2.1.3 (latest released)
### Operating System
Ubuntu 20.04.3 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
LXD Container
### What happened
If you write in a DAG:
```
Variable.set("BACKUP_ORACLE_PSDB_LAST_APPLIED_ARCH", p_event)
Variable.set("BACKUP_ORACLE_PSDB_LAST_APPLIED_DATETIME",
p_timestamp)
```
the Airflow Variables are successfuly set, but the descriptions are cleared
away
### What you expected to happen
I expect that the description is left untouched, and it is only updatable by
the Airflow UI
### How to reproduce
Create a Variable, give it a description, write 2 python lines of cod to
update them.
```
from airflow.models import Variable
Variable.set("BACKUP_ORACLE_PSDB_LAST_APPLIED_ARCH", "pippo")
Variable.set("BACKUP_ORACLE_PSDB_LAST_APPLIED_DATETIME", "puluto")
```
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]