Update StackMonkey.ps1
This commit is contained in:
@@ -80,18 +80,6 @@
|
||||
[string] $N8nPassword,
|
||||
|
||||
# Datto headless mode
|
||||
[Parameter(Mandatory,ParameterSetName='Datto')]
|
||||
#[ValidateNotNullOrEmpty()]
|
||||
[string] $DattoApiUrl,
|
||||
|
||||
[Parameter(Mandatory,ParameterSetName='Datto')]
|
||||
#[ValidateNotNullOrEmpty()]
|
||||
[string] $DattoApiKey,
|
||||
|
||||
[Parameter(Mandatory,ParameterSetName='Datto')]
|
||||
#[ValidateNotNullOrEmpty()]
|
||||
[string] $DattoApiSecretKey,
|
||||
|
||||
|
||||
[Parameter(Mandatory,ParameterSetName='Datto')]
|
||||
#[ValidateNotNullOrEmpty()]
|
||||
@@ -165,14 +153,9 @@ switch ($PSCmdlet.ParameterSetName) {
|
||||
# 1) Fetch URL, Key & Secret from n8n webhook
|
||||
# (this is your lines 415-424)
|
||||
# ────────────────────────────────────────────
|
||||
try {
|
||||
$creds = Get-DattoApiCredentials -Password $N8nPassword
|
||||
if (-not $creds) {
|
||||
throw "Failed to retrieve Datto API credentials from n8n"
|
||||
}
|
||||
|
||||
# 1) Fetch creds
|
||||
$creds = Get-DattoApiCredentials -Password $N8nPassword
|
||||
$resp = Get-DattoApiCredentials -Password $N8nPassword
|
||||
if (-not $creds) { throw "Could not fetch creds" }
|
||||
|
||||
# 2) Store in globals for everyone else
|
||||
|
||||
Reference in New Issue
Block a user