updated id computation for pfw

This commit is contained in:
kjubybot
2022-02-07 12:14:16 +03:00
parent 668d57cd3b
commit 1bf17c23c8
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"net/url"
"strconv"
"strings"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
@@ -22,7 +23,7 @@ func utilityPfwCheckPresence(d *schema.ResourceData, m interface{}) (*PfwRecord,
return nil, nil
}
idS := d.Id()
idS := strings.Split(d.Id(), "-")[1]
id, err := strconv.Atoi(idS)
if err != nil {
return nil, err