refactor(core): Add fn get_organization to centurion mixin
Fn is required for perms to work correctly ref: #870
This commit is contained in:
@ -196,6 +196,12 @@ class Centurion(
|
||||
|
||||
|
||||
|
||||
def get_organization(self):
|
||||
"""Return the objects organization"""
|
||||
return self.organization
|
||||
|
||||
|
||||
|
||||
def get_url(
|
||||
self, relative: bool = False, api_version: int = 2, many = False, request: any = None
|
||||
) -> str:
|
||||
|
@ -136,11 +136,6 @@ class OperatingSystem(
|
||||
return self.name
|
||||
|
||||
|
||||
def get_organization(self):
|
||||
|
||||
return self.organization
|
||||
|
||||
|
||||
|
||||
class OperatingSystemVersion(
|
||||
CenturionModel
|
||||
|
@ -274,9 +274,6 @@ class Software(
|
||||
self.organization = app_settings.global_organization
|
||||
|
||||
|
||||
def get_organization(self):
|
||||
return self.organization
|
||||
|
||||
|
||||
class SoftwareVersion(
|
||||
CenturionModel
|
||||
|
@ -276,10 +276,6 @@ class Cluster(
|
||||
]
|
||||
|
||||
|
||||
def get_organization(self):
|
||||
return self.organization
|
||||
|
||||
|
||||
@property
|
||||
def rendered_config(self):
|
||||
|
||||
|
@ -368,7 +368,3 @@ class Service(
|
||||
config.update(self.config)
|
||||
|
||||
return config
|
||||
|
||||
|
||||
def get_organization(self):
|
||||
return self.organization
|
||||
|
Reference in New Issue
Block a user