Skip to content

Commit

Permalink
Check contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Jan 7, 2025
1 parent 3efb3cc commit cea86a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected override async Task UpdateApi(IManagementApiClient api, string id, Res
/// <inheritdoc />
protected override Task ApplyStatus(IManagementApiClient api, V1ResourceServer entity, Hashtable lastConf, CancellationToken cancellationToken)
{
var identifier = ((dynamic)lastConf).identifier;
var identifier = (string?)lastConf["identifier"];
if (string.IsNullOrWhiteSpace(identifier))
throw new InvalidOperationException($"{EntityTypeName} {entity.Namespace()}/{entity.Name()} has missing Identifier.");

Expand Down

0 comments on commit cea86a0

Please sign in to comment.