Skip to content

Commit

Permalink
Fix order of arguments to apimanagement.APIDiagnosticClient.CreateOrU…
Browse files Browse the repository at this point in the history
…pdate

Signed-off-by: Sune Keller <[email protected]>
  • Loading branch information
sirlatrom committed Aug 17, 2020
1 parent fb211dc commit c8ab23d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func resourceArmApiManagementApiDiagnosticCreateUpdate(d *schema.ResourceData, m
},
}

if _, err := client.CreateOrUpdate(ctx, resourceGroup, serviceName, diagnosticId, apiName, parameters, ""); err != nil {
if _, err := client.CreateOrUpdate(ctx, resourceGroup, serviceName, apiName, diagnosticId, parameters, ""); err != nil {
return fmt.Errorf("creating or updating Diagnostic %q (Resource Group %q / API Management Service %q / API %q): %+v", diagnosticId, resourceGroup, serviceName, apiName, err)
}

Expand Down

0 comments on commit c8ab23d

Please sign in to comment.