Skip to content

Commit

Permalink
Merge pull request #48 from mulesoft-anypoint/features/rtf
Browse files Browse the repository at this point in the history
Runtime Fabrics Integration
  • Loading branch information
soufi authored Aug 25, 2024
2 parents ae92bdb + d2b5807 commit c029036
Show file tree
Hide file tree
Showing 35 changed files with 2,042 additions and 10 deletions.
2 changes: 1 addition & 1 deletion anypoint/data_source_apim_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ func flattenApimAudit(audit *apim.Audit) map[string]interface{} {
}
}
if updated, ok := audit.GetUpdatedOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok {
result["updated"] = *val
}
}
Expand Down
2 changes: 1 addition & 1 deletion anypoint/data_source_apim_instance_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func flattenApimInstancePolicyAudit(audit *apim_policy.Audit) map[string]interfa
}
}
if updated, ok := audit.GetUpdatedOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok {
result["updated"] = val
}
}
Expand Down
2 changes: 1 addition & 1 deletion anypoint/data_source_apim_instance_upstreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func flattenApimUpstreamAudit(audit *apim_upstream.Audit) map[string]interface{}
}
}
if updated, ok := audit.GetUpdatedOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok && updated != nil {
if val, ok := updated.GetDateOk(); ok {
result["updated"] = val.String()
}
}
Expand Down
2 changes: 1 addition & 1 deletion anypoint/data_source_connected_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func dataSourceConnectedAppRead(ctx context.Context, d *schema.ResourceData, m i
// Is it a "on behalf of user" connected apps?
if granttypes := connappinstance["grant_types"]; granttypes != nil && StringInSlice(granttypes.([]string), "client_credentials", true) {
// Yes, then load the scopes using connapps/{connapp_id}/scopes
if scopes, error := readScopesByConnectedAppId(authctx, orgid, connappid, m); error != nil {
if scopes, err := readScopesByConnectedAppId(authctx, orgid, connappid, m); err != nil {
diags := append(diags, diag.Diagnostic{
Severity: diag.Error,
Summary: "Unable to read connected-app " + connappid + " scopes",
Expand Down
Loading

0 comments on commit c029036

Please sign in to comment.