Skip to content

Commit

Permalink
added input variable and explicit bool conversion of boolean input
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek committed Feb 8, 2025
1 parent c5d24c0 commit d9d9d22
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Tasks/Manage-AutomationAccount/Manage-AutomationAccount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ $resourceGroup = Get-VstsInput -Name 'resourceGroup' -Require
$automationAccount = Get-VstsInput -Name 'automationAccount' -Require
$storageAccount = Get-VstsInput -Name 'storageAccount'
$storageAccountContainer = Get-VstsInput -Name 'storageAccountContainer'
$fullSync = Get-VstsInput -Name 'fullSync'
$reportMissingImplementation = Get-VstsInput -Name 'reportMissingImplementation'
$verboseLog = Get-VstsInput -Name 'verbose'
$helperHybridWorkerModuleManagement = Get-VstsInput -Name 'helperHybridWorkerModuleManagement'
$fullSync = Get-VstsInput -Name 'fullSync' -AsBool
$reportMissingImplementation = Get-VstsInput -Name 'reportMissingImplementation' -AsBool
$verboseLog = Get-VstsInput -Name 'verbose' -AsBool
$helperHybridWorkerModuleManagement = Get-VstsInput -Name 'helperHybridWorkerModuleManagement' -AsBool

if ($verboseLog) {
Write-host "Verose log will be enabled"
Expand Down
8 changes: 8 additions & 0 deletions Tasks/Manage-AutomationAccount/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
"defaultValue": false,
"required": false,
"helpMarkDown": "Whether to turn on helper: HybridWorkerModuleManagement"
},
{
"name": "verbose",
"type": "boolean",
"label": "Produce verbose log",
"defaultValue": false,
"required": false,
"helpMarkDown": "Whether to turn on verbose logging"
}
],
"execution": {
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "Manage-AutomationAccount",
"name": "Manage-AutomationAccount",
"version": "1.9.123",
"version": "1.9.124",
"publisher": "GreyCorbelSolutions",
"targets": [
{
Expand Down

0 comments on commit d9d9d22

Please sign in to comment.