i'm an idiot

This commit is contained in:
2021-09-23 14:15:40 -04:00
parent ce5f25e01f
commit 2f1ca604d6
+1 -1
View File
@@ -40,7 +40,7 @@ Catch { $_.Exception.Message }
## Get agent details and custom fields from Atera
Try {
LogMsg "Getting Atera agent and custom field information"
Set-AteraAPIKey = $AteraAPIKey
Set-AteraAPIKey -APIKey $AteraAPIKey
$AteraAgent = Get-AteraAgent
$MSP360Username = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Username'
$MSP360Password = Get-AteraCustomValue -ObjectType Customer -ObjectId $AteraAgent.CustomerID -FieldName 'MSP360 Account Password'