From: Cory Johns Date: Tue, 29 Nov 2016 23:44:34 +0000 (-0500) Subject: NoneType and style fixes for placement parsing lib X-Git-Tag: 0.1.0~27^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0eba58d4267134e7f36665cb6bc481834abb7f9c;p=osm%2FN2VC.git NoneType and style fixes for placement parsing lib --- diff --git a/juju/placement.py b/juju/placement.py index 62cd570..6f91aed 100644 --- a/juju/placement.py +++ b/juju/placement.py @@ -6,9 +6,10 @@ # module should be deprecated. # +from .client import client + MACHINE_SCOPE = "#" -from .client import client def parse(directive): """ @@ -17,7 +18,7 @@ def parse(directive): back over the websocket API. """ - if directive == "": + if not directive: # Handle null case return None