Skip to content

Commit

Permalink
Add comment explaining request-based model
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Jan 8, 2025
1 parent f057578 commit 3038584
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ private void reflectUdmiLog(Envelope attributes, String message) {
private Object extractModel(CloudModel request) {
String metadata = catchToNull(() -> request.metadata.get(MetadataMapKeys.UDMI_METADATA));
if (metadata == null) {
// Cover the cases for DELETE and BIND operations where there is no actual model.
return asModelUpdate(request);
} else if (request.resource_type == REGISTRY) {
return asSiteMetadataUpdate(metadata);
Expand Down

0 comments on commit 3038584

Please sign in to comment.