Commit 2a663dcf authored by lukas.burgey's avatar lukas.burgey

Remove the obsolete properties broker_exchange and routing_key

parent 16e79bff
......@@ -60,11 +60,6 @@ class VO(PolymorphicModel):
def pretty_name(self):
return self.name
@property
def broker_exchange(self): # pragma: no cover
# overridden in the implementations
return None
def __str__(self):
return self.name
......@@ -100,10 +95,6 @@ class Group(VO):
def pretty_name(self):
return self.name
@property
def broker_exchange(self): # pragma: no cover
return 'groups'
def __str__(self):
return 'VO-GROUP-'+self.name
......@@ -158,10 +149,6 @@ class Entitlement(VO):
def full_name(self):
return self.__repr__()
@property
def broker_exchange(self): # pragma: no cover
return 'entitlements'
@staticmethod
def extract_name(raw_name):
name_search = re.search('^(.*)#', raw_name)
......
......@@ -192,14 +192,6 @@ class VODeployment(Deployment):
def services(self):
return self.vo.services.all()
@property
def broker_exchange(self):
return self.vo.broker_exchange
@property
def routing_key(self):
return self.vo.name
# _assure_states_exist creates missing DeploymentState for this deployment
# returns True if new states were created
def _assure_states_exist(self):
......@@ -248,14 +240,6 @@ class ServiceDeployment(Deployment):
on_delete=models.CASCADE,
)
@property
def broker_exchange(self):
return 'services'
@property
def routing_key(self):
return self.service.name
def _assure_states_exist(self):
_, created = DeploymentState.get_or_create(self.user, self.service, self)
return created
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment