Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: Tweak default flag handling logic
When hoisting deploy flags from the option dict, we want the default values to take effect *only if* the option wasn't specified in the dict. Instead, because we initialized the return value with the default flags, the option set couldn't override a flag which was part of the defaults (IOW, a flag that's on by default couldn't be turned off through the options dict). Came upon this issue by trying to use the older `Deploy()` and `Rebase()` D-Bus APIs which pass default values like `ALLOW_DOWNGRADE`, but the option dict specifies `allow-downgrade=false`. (We could say, "you should use the newer `UpdateDeployment()` API", but the cat is mostly out of the bag at this point on options that get shoved into the dict and take effect on both APIs).
- Loading branch information