From e45aa0171dd868cd79b4b66b88baf32fd9dcb8f2 Mon Sep 17 00:00:00 2001 From: bfett20 <59446956+bfett20@users.noreply.github.com> Date: Mon, 24 Feb 2020 06:24:44 -0600 Subject: [PATCH 1/3] Create stale.yml --- .github/workflows/stale.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..7bbc050 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,19 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'Stale issue message' + stale-pr-message: 'Stale pull request message' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' From 233c220dd67be91bb9aa812532f3ee7da3fa8797 Mon Sep 17 00:00:00 2001 From: bfett20 <59446956+bfett20@users.noreply.github.com> Date: Mon, 24 Feb 2020 06:30:39 -0600 Subject: [PATCH 2/3] Update VMware.Hv.Helper Added "clearGlobalEntitlement" switch to Set-HVApplication --- Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 b/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 index 89e3dfc..180f916 100644 --- a/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 +++ b/Modules/VMware.Hv.Helper/VMware.HV.Helper.psm1 @@ -12683,6 +12683,9 @@ param ( [Parameter(Mandatory = $False)] [String]$GlobalApplicationEntitlement = $null + + [Parameter(Mandatory = $false)] + [switch]$clearGlobalEntitlement ) begin { $services = Get-ViewAPIService -HvServer $HvServer @@ -12762,6 +12765,12 @@ param ( if ($PSBoundParameters.ContainsKey("AutoUpdateOtherFileTypes")) { $updates += Get-MapEntry -key 'executionData.autoUpdateOtherFileTypes' -value $AutoUpdateOtherFileTypes } + + if ($clearGlobalEntitlement) { + $update = New-Object VMware.Hv.MapEntry + $update.key = 'data.globalApplicationEntitlement' + $updates += $update + } $AppService = New-Object VMware.Hv.ApplicationService $AppService.Application_Update($services,$App.Id,$updates) From 926260096f7b8a9e3b26a51f49fd495f1f6b7e57 Mon Sep 17 00:00:00 2001 From: bfett20 <59446956+bfett20@users.noreply.github.com> Date: Mon, 24 Feb 2020 06:40:29 -0600 Subject: [PATCH 3/3] Delete stale.yml --- .github/workflows/stale.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 7bbc050..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - stale: - - runs-on: ubuntu-latest - - steps: - - uses: actions/stale@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity'