X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fconstraints.py;h=998862d02508499dd28d0f20983e1f5858498213;hb=27dfe759bbb54ca7dc963c30f6c52406c456983a;hp=c5518837faf645a6bde740f2e2af57ee0525a6ed;hpb=1a06248f485c30bd092c24d854459c1fe3c652ee;p=osm%2FN2VC.git diff --git a/juju/constraints.py b/juju/constraints.py index c551883..998862d 100644 --- 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: