fixed pfw deletion

This commit is contained in:
kjubybot committed 2022-02-07 12:19:21 +03:00
1 parent 06c0578fa6
commit 95cd7cb820
1 file changed
+1 -1
+1 -1
View File
@@ -101,7 +101,7 @@ func resourcePfwDelete(d *schema.ResourceData, m interface{}) error {
controller := m.(*ControllerCfg)
urlValues := &url.Values{}
urlValues.Add("computeId", strconv.Itoa(d.Get("compute_id").(int)))
urlValues.Add("ruleId", d.Id())
urlValues.Add("ruleId", strconv.Itoa(pfw.ID))
_, err = controller.decortAPICall("POST", ComputePfwDelAPI, urlValues)
if err != nil {