WahlNetwork / vester

Easily validate and remediate your vSphere configuration
https://wahlnetwork.com
Apache License 2.0
146 stars 45 forks source link

Syslog host test does not remove old hosts #210

Closed kxrobert closed 6 years ago

kxrobert commented 6 years ago

When setting the syslog hosts with the remediate option, old options remain. Test passes the first time when remediate is run, but subsequent tests fail.

Expected Behavior

Old Syslog hosts should be removed in favor of the new setting. then apply new hosts

Current Behavior

New hosts are added, old hosts are left in

Possible Solution

[ScriptBlock]$Fix = { Set-VMHostSysLogServer -VMHost $Object -SysLogServer $null -ErrorAction Stop Set-VMHostSysLogServer -VMHost $Object -SysLogServer $Desired -ErrorAction Stop (Get-EsxCli -VMHost $Object).system.syslog.reload() }

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Test works with -remediate but fails otherwise

Your Environment

kxrobert commented 6 years ago

bug in my own setup XD