projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor to use IdQueue pattern
[osm/N2VC.git]
/
juju
/
placement.py
diff --git
a/juju/placement.py
b/juju/placement.py
index
561bc40
..
5ee9ba6
100644
(file)
--- a/
juju/placement.py
+++ b/
juju/placement.py
@@
-41,10
+41,10
@@
def parse(directive):
return [client.Placement(scope=MACHINE_SCOPE, directive=directive)]
if "/" in directive:
return [client.Placement(scope=MACHINE_SCOPE, directive=directive)]
if "/" in directive:
- machine, container, container_num = directive.split("/")
+ # e.g. "0/lxd/0"
+ # https://github.com/juju/juju/blob/master/instance/placement_test.go#L29
return [
return [
- client.Placement(scope=MACHINE_SCOPE, directive=machine),
- client.Placement(scope=container, directive=container_num)
+ client.Placement(scope=MACHINE_SCOPE, directive=directive),
]
# Planner has probably given us a container type. Leave it up to
]
# Planner has probably given us a container type. Leave it up to