Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi
authorScott Baker <smbaker@gmail.com>
Tue, 25 Nov 2014 08:49:30 +0000 (00:49 -0800)
committerScott Baker <smbaker@gmail.com>
Tue, 25 Nov 2014 08:49:30 +0000 (00:49 -0800)
planetstack/core/models/slice.py
planetstack/openstack_observer/steps/sync_slice_deployments.py

index 128d605..1f29f0e 100644 (file)
@@ -93,13 +93,13 @@ class Slice(PlCoreBase):
         nets = Network.objects.filter(slices=self)
         nets.delete() 
         # delete slice deployments
-        slice_deployments = SliceDeploymentss.objects.filter(slice=self)
+        slice_deployments = SliceDeployments.objects.filter(slice=self)
         slice_deployments.delete()
         # delete slice privilege
         slice_privileges = SlicePrivilege.objects.filter(slice=self)
         slice_privileges.delete() 
         # continue with normal delete
-        super(SliceAdmin, self).delete(*args, **kwds) 
+        super(Slice, self).delete(*args, **kwds) 
          
 
 class SliceRole(PlCoreBase):
index 97196d6..4c358d7 100644 (file)
@@ -65,7 +65,7 @@ class SyncSliceDeployments(OpenStackSyncStep):
                         'tenant': slice_deployment.slice.name,
                         'tenant_description': slice_deployment.slice.description,
                         'roles':roles,
-                        'name':deployment_user.email,
+                        'name':deployment_user.user.email,
                         'max_instances':max_instances}
 
        res = run_template('sync_slice_deployments.yaml', tenant_fields)