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