def destroy(self): payload = {'server_group_id': self.uuid} try: self._destroy_in_db(self._context, self.uuid) except exception.InstanceGroupNotFound: db.instance_group_delete(self._context, self.uuid) self.obj_reset_changes() compute_utils.notify_about_server_group_update(self._context, "delete", payload)
def destroy(self, context): db.instance_group_delete(context, self.uuid) self.obj_reset_changes()
def destroy(self): payload = {'server_group_id': self.uuid} db.instance_group_delete(self._context, self.uuid) self.obj_reset_changes() compute_utils.notify_about_server_group_update(self._context, "delete", payload)