kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Allow false env var value

Open junket opened this issue 1 year ago • 0 comments

I am booting an accessory that needs a clear env var value like ENABLE_AUTO_LOGIN=false so my config is just:

env:
  clear:
    ENABLE_AUTO_LOGIN: false

When Kamal passes such env vars to docker run it drops the false value since the argumentize utility checks that the value is present? and false values evaluate to false, leading to docker run --env ENABLE_AUTO_LOGIN

This PR updates argumentize to preserve false values, leading to docker run --env ENABLE_AUTO_LOGIN=false

junket avatar Oct 03 '24 14:10 junket