Skip to content

Commit ab6eeef

Browse files
committed
Update Invoke-ExecSetPackageTag.ps1
1 parent 7bbde81 commit ab6eeef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecSetPackageTag.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Invoke-ExecSetPackageTag {
3131

3232
foreach ($GUID in $GUIDS) {
3333
$Filter = "RowKey eq '$GUID'"
34-
34+
$Template = Get-CIPPAzDataTableEntity @Table -Filter $Filter
3535
$Entity = @{
3636
JSON = $Template.JSON
3737
RowKey = "$GUID"
@@ -41,7 +41,7 @@ function Invoke-ExecSetPackageTag {
4141
SHA = $Template.SHA ?? $null
4242
}
4343

44-
$Template = Get-CIPPAzDataTableEntity @Table -Filter $Filter
44+
4545
Add-CIPPAzDataTableEntity @Table -Entity $Entity -Force
4646

4747
if ($Remove -eq $true) {

0 commit comments

Comments
 (0)