blob: d5237a6d5fb39beb0978fe2b5dfe7c984ae92348 [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 CDNPrefixDeleter(Deleter, HpcLibrary):
13 model='CDNPrefix'
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 cdn prefix", model_dict
21 self.client.onev.Delete("CDNPrefix", int(model_dict["cdn_prefix_id"]))
22