flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

batou.lib.mysql.Grant: Only appending #368

Open frlan opened 1 year ago

frlan commented 1 year ago

This might be a tricky problem, when it comes to the details. However: batou.lib.mysql.Grant at the moment only appends new GRANTS to the current ones. If e.g. something like this was used some time:

self += batou.lib.mysql.Grant(
            "*",
            user=susername,
            admin_password=admin_password,
            allow_from_hostname="%")

the GRANT is not cleaned up after changing this statement.

ctheune commented 1 year ago

This smells like a good specific use case for #364 ! :)