Incorrect handling of 404 Error in delete PM Threshold API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
In Progress
|
Undecided
|
Unassigned |
Bug Description
In the current Tacker implementation (stable/2023.1), generating `404 Not Found` error in delete PM Threshold API does not correctly handled.
[1] is the point where the above bug detected.
```
if not pm_threshold:
raise sol_ex.
```
This process generates an instance of `PMThresholdNot
```
class PMThresholdNotE
message = _("The specified PM Threshold %(threshold_id)s does not exist.")
```
I think the below change at [1] will resolve this bug:
```
if not pm_threshold:
raise sol_ex.
```
[1] https:/
[2] https:/
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/886246
Review: https:/