X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fconstraints.py;h=998862d02508499dd28d0f20983e1f5858498213;hb=0f8958d1a9861ca196c613c3f1940aa61c4ddc33;hp=c5518837faf645a6bde740f2e2af57ee0525a6ed;hpb=afb309d17dadc062017ee3d6425491193181138e;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: