Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmsk66 committed Apr 7, 2024
1 parent a02a5ef commit d6d5f2b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/tfconf/tfconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (tfconf *TFConf) RewriteResources(serviceProp prop.TFBlock, props []prop.TF
return nil, err
}
case "fastly_service_waf_configuration":
id, err := getStringAttributeValue(block, "waf_id")
id, err = getStringAttributeValue(block, "waf_id")
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -246,11 +246,15 @@ func (tfconf *TFConf) RewriteResources(serviceProp prop.TFBlock, props []prop.TF
if err != nil {
return nil, err
}
st, err := state.AddTemplate(tfstate.ResourceNameQueryTmplate)

var st *tfstate.TFStateWithTemplate
st, err = state.AddTemplate(tfstate.ResourceNameQueryTmplate)
if err != nil {
return nil, err
}
resourceName, err := st.ResourceNameQuery(tfstate.ResourceNameQueryParams{

var resourceName *tfstate.TFState
resourceName, err = st.ResourceNameQuery(tfstate.ResourceNameQueryParams{
ResourceType: serviceProp.GetType(),
NestedBlockName: "dictionary",
IDName: "dictionary_id",
Expand Down

0 comments on commit d6d5f2b

Please sign in to comment.