Skip to content

Commit

Permalink
Remove error on unexpected type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismilson committed Sep 20, 2023
1 parent 56735bf commit f4ac959
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func directoryObjectDataSourceRead(ctx context.Context, d *schema.ResourceData,
case odata.TypeServicePrincipal:
tf.Set(d, "type", "ServicePrincipal")
default:
return diag.Errorf("unknown object type %q returned for directory object with ID: %q", *directoryObject.ODataType, objectId)
tf.Set(d, "type", directoryObject.ODataShortType)
}

return nil
Expand Down

0 comments on commit f4ac959

Please sign in to comment.