deis/deis — pull request #951 by bacongobbler (2014-05-09 22:12:47+00:00)
Title: fix(controller): fix NoneType config values

if publish_release is called without configuration data (i.e.
config = None), the loops in _generate_env fail to work properly.

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