projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3087d55
)
NoneType and style fixes for placement parsing lib
author
Cory Johns
<johnsca@gmail.com>
Tue, 29 Nov 2016 23:44:34 +0000
(18:44 -0500)
committer
Cory Johns
<johnsca@gmail.com>
Tue, 29 Nov 2016 23:44:52 +0000
(18:44 -0500)
juju/placement.py
patch
|
blob
|
history
diff --git
a/juju/placement.py
b/juju/placement.py
index
62cd570
..
6f91aed
100644
(file)
--- 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