use id instead of name as a unique identifier
authorScott Baker <smbaker@gmail.com>
Wed, 16 Apr 2014 00:44:27 +0000 (17:44 -0700)
committerScott Baker <smbaker@gmail.com>
Wed, 16 Apr 2014 00:44:27 +0000 (17:44 -0700)
planetstack/core/plus/views.py

index 3410c93..e37faef 100644 (file)
@@ -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