git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe6a7e1
)
use id instead of name as a unique identifier
author
Scott Baker
<smbaker@gmail.com>
Wed, 16 Apr 2014 00:44:27 +0000
(17:44 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Wed, 16 Apr 2014 00:44:27 +0000
(17:44 -0700)
planetstack/core/plus/views.py
patch
|
blob
|
history
diff --git
a/planetstack/core/plus/views.py
b/planetstack/core/plus/views.py
index
3410c93
..
e37faef
100644
(file)
--- a/
planetstack/core/plus/views.py
+++ b/
planetstack/core/plus/views.py
@@
-275,7
+275,7
@@
def slice_increase_slivers(user, user_ip, siteList, slice, count, noAct=False):
for node in site.nodeList:
node.sliverCount = 0
for sliver in node.slivers.all():
- if sliver.slice.
name == slice.name
:
+ if sliver.slice.
id == slice.id
:
node.sliverCount = node.sliverCount +1
# Allocate slivers to nodes