addUnits no longer attempts to send [None] for `placement`.
authorPete Vander Giessen <petevg@gmail.com>
Wed, 30 Nov 2016 13:11:24 +0000 (08:11 -0500)
committerPete Vander Giessen <petevg@gmail.com>
Wed, 30 Nov 2016 13:55:01 +0000 (08:55 -0500)
commit9f92750dcbcfcd59367cf9ced122b45ae09f5d9b
tree6f35bd5788f90a038df3ac883838f6f9084daa6b
parent2f24fbf91801cb5f1cc9561fca539c48f6f15776
addUnits no longer attempts to send [None] for `placement`.

This happens when we attempt to parse_placement on a null or blank
directive, and it leads to a null pointer error in the API. Instead, we
pass a simple None for `placement` if we don't have a placement
directive.
juju/application.py