Skip to content

Commit

Permalink
Fix for case when src is not provided (#16368)
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonSel authored Jun 28, 2024
1 parent ba5e8c0 commit 2772ac6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ public static async ValueTask<Completion> WriteToAsync(List<FilterArgument> argu

var setting = resourceManager.RegisterResource("script", name);

if (customAttributes != null)
{
foreach (var attribute in customAttributes)
{
setting.SetAttribute(attribute.Key, attribute.Value);
}
}

if (at != ResourceLocation.Unspecified)
{
setting.AtLocation(at);
Expand Down

0 comments on commit 2772ac6

Please sign in to comment.