schema_edit = infra_controller_profile_create_edit_schema
def __init__(self, db, fs, msg, auth):
- BaseTopic.__init__(self, db, fs, msg, auth)
+ super().__init__(db, fs, msg, auth)
def new(self, rollback, session, indata=None, kwargs=None, headers=None):
# To create the new infra controller profile
schema_edit = infra_config_profile_create_edit_schema
def __init__(self, db, fs, msg, auth):
- BaseTopic.__init__(self, db, fs, msg, auth)
+ super().__init__(db, fs, msg, auth)
def new(self, rollback, session, indata=None, kwargs=None, headers=None):
# To create the new infra config profile
schema_edit = app_profile_create_edit_schema
def __init__(self, db, fs, msg, auth):
- BaseTopic.__init__(self, db, fs, msg, auth)
+ super().__init__(db, fs, msg, auth)
def new(self, rollback, session, indata=None, kwargs=None, headers=None):
# To create the new app profile
schema_edit = resource_profile_create_edit_schema
def __init__(self, db, fs, msg, auth):
- BaseTopic.__init__(self, db, fs, msg, auth)
+ super().__init__(db, fs, msg, auth)
def new(self, rollback, session, indata=None, kwargs=None, headers=None):
# To create the new resource profile
filter_q = self._get_project_filter(session)
filter_q[self.id_field(self.topic, _id)] = _id
check = self.db.get_one(self.topic, filter_q)
+ op_id = check["current_operation"]
if check["created"] == "false":
raise EngineException(
"Cannot delete registered cluster. Please deregister.",
HTTPStatus.UNPROCESSABLE_ENTITY,
)
super().delete(session, _id, dry_run, not_send_msg)
+ return op_id
class ClusterOpsTopic(ACMTopic):
{"cluster_id": _id, "operation_id": op_id},
not_send_msg=not_send_msg,
)
- return None
+ return _id
class KsusTopic(ACMTopic):