git://git.onelab.eu
/
plstackapi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fixed a typo
[plstackapi.git]
/
planetstack
/
ec2_observer
/
deleters
/
network_sliver_deleter.py
1
from core.models import NetworkSliver
2
from observer.deleter import Deleter
3
4
class NetworkSliverDeleter(Deleter):
5
model='NetworkSliver'
6
7
def call(self, pk):
8
network_sliver = NetworkSlivers.objects.get(pk=pk)
9
# handle openstack delete
10
11
network_sliver.delete()
12
13