Skip to content

Commit

Permalink
fix tflint errors (#12554)
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte authored Jul 12, 2021
1 parent 30dda4d commit a1fc1d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func resourceCognitiveAccountRead(d *pluginsdk.ResourceData, meta interface{}) e
return fmt.Errorf("setting `storages` for Cognitive Account %q: %+v", id, err)
}
if props.RestrictOutboundNetworkAccess != nil {
d.Set("outbound_network_access_restrited", *props.RestrictOutboundNetworkAccess)
d.Set("outbound_network_access_restrited", props.RestrictOutboundNetworkAccess)
}
if props.DisableLocalAuth != nil {
d.Set("local_auth_enabled", !*props.DisableLocalAuth)
Expand Down
3 changes: 2 additions & 1 deletion azurerm/internal/services/policy/assignment_base_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ func (br assignmentBaseResource) readFunc(scopeFieldName string) sdk.ResourceFun
}

metadata.ResourceData.Set("name", id.Name)
metadata.ResourceData.Set(scopeFieldName, id.Scope)
metadata.ResourceData.Set("location", location.NormalizeNilable(resp.Location))
// lintignore:R001
metadata.ResourceData.Set(scopeFieldName, id.Scope)

if err := metadata.ResourceData.Set("identity", br.flattenIdentity(resp.Identity)); err != nil {
return fmt.Errorf("setting `identity`: %+v", err)
Expand Down

0 comments on commit a1fc1d9

Please sign in to comment.