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:
c41ac81
)
Improve constraints parsing for empty values
author
Cory Johns
<johnsca@gmail.com>
Fri, 3 Mar 2017 16:30:49 +0000
(11:30 -0500)
committer
Cory Johns
<johnsca@gmail.com>
Fri, 3 Mar 2017 16:33:39 +0000
(11:33 -0500)
juju/constraints.py
patch
|
blob
|
history
diff --git
a/juju/constraints.py
b/juju/constraints.py
index
c551883
..
998862d
100644
(file)
--- a/
juju/constraints.py
+++ b/
juju/constraints.py
@@
-39,10
+39,7
@@
def parse(constraints):
and key value pairs joined by an '='.
"""
- if constraints is None:
- return None
-
- if constraints == "":
+ if not constraints:
return None
if type(constraints) is dict: