Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi
diff --git a/planetstack/core/xoslib/objects/sliceplus.py b/planetstack/core/xoslib/objects/sliceplus.py
index 465cbda..ddec295 100644
--- a/planetstack/core/xoslib/objects/sliceplus.py
+++ b/planetstack/core/xoslib/objects/sliceplus.py
@@ -10,8 +10,8 @@
used_deployments = {}
sliverCount = 0
for sliver in self.slivers.all():
- site = sliver.node.site
- deployment = sliver.node.deployment
+ site = sliver.node.site_deployment.site
+ deployment = sliver.node.site_deployment.deployment
used_sites[site.name] = used_sites.get(site.name, 0) + 1
used_deployments[deployment.name] = used_deployments.get(deployment.name, 0) + 1
sliverCount = sliverCount + 1