This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(controller): fix NoneType config values
if `Release.new` is called without new configuration data (i.e. config = None), the if statements will be skipped because a NoneType in Python means that the variable still has a value, which is not the intended behavior. Explicitly checking if config or build is a NoneType fixes this behavior. TESTING: rebuild the controller with this change and push an app: $ deis create test $ git push deis master then, test that a 'v2' tag was successfully created in the registry: $ curl local.deisapp.com:5000/v1/repositories/test/tags {"latest": "ed14150269724148851d54d5f3ed104ced14150269724148851d54d5f3ed104c", "v2": "ed14150269724148851d54d5f3ed104ced14150269724148851d54d5f3ed104c"} fixes #950
- Loading branch information