Skip to content

Commit

Permalink
Merge pull request #226 from iwarapter/patch-1
Browse files Browse the repository at this point in the history
Allow ProvisionOnDemand to return OK as response
  • Loading branch information
manicminer committed Feb 27, 2023
2 parents ca2197c + 567c0ac commit d0a8bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgraph/synchronization.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (c *SynchronizationJobClient) ProvisionOnDemand(ctx context.Context, id str

resp, status, _, err := c.BaseClient.Post(ctx, PostHttpRequestInput{
Body: body,
ValidStatusCodes: []int{http.StatusCreated},
ValidStatusCodes: []int{http.StatusCreated, http.StatusOK},
Uri: Uri{
Entity: fmt.Sprintf("/servicePrincipals/%s/synchronization/jobs/%s/provisionOnDemand", servicePrincipalId, id),
},
Expand Down

0 comments on commit d0a8bfd

Please sign in to comment.