projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f24fbf
)
addUnits no longer attempts to send [None] for `placement`.
author
Pete Vander Giessen
<petevg@gmail.com>
Wed, 30 Nov 2016 13:11:24 +0000
(08:11 -0500)
committer
Pete Vander Giessen
<petevg@gmail.com>
Wed, 30 Nov 2016 13:55:01 +0000
(08:55 -0500)
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
patch
|
blob
|
history
diff --git
a/juju/application.py
b/juju/application.py
index
83c2275
..
74f9057
100644
(file)
--- a/
juju/application.py
+++ b/
juju/application.py
@@
-88,7
+88,7
@@
class Application(model.ModelEntity):
result = await app_facade.AddUnits(
application=self.name,
- placement=[parse_placement(to)],
+ placement=[parse_placement(to)]
if to else None
,
num_units=count,
)