Improve constraints parsing for empty values
[osm/N2VC.git] / juju / constraints.py
index c551883..998862d 100644 (file)
@@ -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: