blob: 4f08ba024b0abf82650b36f244faf8835e9e247a [file] [log] [blame]
Scott Baker717c19e2014-01-21 23:18:49 -08001import os
2import sys
3from hpc.models import ServiceProvider, ContentProvider, CDNPrefix
4from observer.deleter import Deleter
5
6# hpclibrary will be in steps/..
7parentdir = os.path.join(os.path.dirname(__file__),"..")
8sys.path.insert(0,parentdir)
9
10from hpclib import HpcLibrary
11
12class OriginServerDeleter(Deleter, HpcLibrary):
13 model='OriginServer'
14
15 def __init__(self, **args):
16 Deleter.__init__(self, **args)
17 HpcLibrary.__init__(self)
18
19 def call(self, pk, model_dict):
20 print "XXX delete origin server", model_dict
21 self.client.onev.Delete("OriginServer", int(model_dict["origin_server_id"]))
22