Skip to content

Commit

Permalink
fix: correct blocking syntax on Set-vRAvRLIConfig (#104)
Browse files Browse the repository at this point in the history
Correct syntax on `Set-vRAvRLIConfig ` blocking module import.

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
  • Loading branch information
Ryan Johnson authored Sep 26, 2022
1 parent 5a245f5 commit be7eefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10600,7 +10600,7 @@ Function Set-vRAvRLIConfig {
- Sets the vRealize Log Insight configuration on vRealize Automation

.EXAMPLE
Set-vRAvRLIConfig -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -rootPass VMw@re1!
Set-vRAvRLIConfig -server sfo-vcf01.sfo.rainpole.io -user administrator@vsphere.local -pass VMw@re1! -rootPass VMw@re1! -protocol HTTPS
This example sets the vRealize Log Insight logging configuration on vRealize Automation.
#>

Expand Down Expand Up @@ -10655,7 +10655,7 @@ Function Set-vRAvRLIConfig {
}

$status = Get-vRAvRLIConfig -server $server -user $user -pass $pass -rootPass $rootPass
if (($status).Contains("`"host`": `"$uriHost`"")) -and (($status).Contains("`"port`": $uriPort")) -and (($status).Contains("`"scheme`": `"$uriProtocol`"")) {
if (($status).Contains("`"host`": `"$uriHost`"") -and ($status).Contains("`"port`": $uriPort") -and ($status).Contains("`"scheme`": `"$uriProtocol`"")) {
Write-Output 'Setting the vRealize Automation integration with vRealize Log Insight: SUCCESSFUL'
} elseif (($status).Contains('No vRLI integration configured')) {
Write-Warning 'vRealize Automation integration with vRealize Log Insight configuration not set: SKIPPED'
Expand Down

0 comments on commit be7eefe

Please sign in to comment.